You could make connection for less than 40min time between the flights if they are Schengen-Schengen or NonShcengen-NonSchengen. You need at least 1h if your flights are NonSchengen-Schengen or vice versa, because you have to exit the zone and do all the checks as passangers from A to B (flying directly) does.