/
Bugzilla – Bug 4108
SSL handshakes for data connections sometimes stall for 3-30 seconds
Last modified: 2015-05-28 05:43:36 UTC
Numerous users, over the years, have noted that whenever they use FTPS, their data connections (for directory listings, uploads, downloads) appear to stall during the SSL/TLS handshake. This stall can be anywhere from 3 to 30 seconds; for some sites, it's annoying, and for others, it is detrimental. The forums have several topics covering this issue: https://forums.proftpd.org/smf/index.php/topic,11152.0.html https://forums.proftpd.org/smf/index.php/topic,11243.0.html https://forums.proftpd.org/smf/index.php/topic,11601.0.html
Pull request opened which fixes the issue: https://github.com/proftpd/proftpd/pull/48 Short version: we do NOT want the TCP_CORK/TCP_NOPUSH socket option enabled on the data connection socket during the SSL/TLS handshake. This option, like Nagling, causes the socket buffer to wait to be filled, up to some timer. Hence the delay.
Merged to master, and backported to the 1.3.5 branch.
Resolved in 1.3.5a, 1.3.6rc1.