/ Bug 4108 – SSL handshakes for data connections sometimes stall for 3-30 seconds
Bug 4108 - SSL handshakes for data connections sometimes stall for 3-30 seconds
: SSL handshakes for data connections sometimes stall for 3-30 seconds
Status: CLOSED FIXED
Product: ProFTPD
mod_tls
: 1.3.5
: All All
: P3 normal
Assigned To: TJ Saunders
:
: Backport
:
:
  Show dependency treegraph
 
Reported: 2014-09-24 02:31 UTC by TJ Saunders
Modified: 2015-05-28 05:43 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TJ Saunders 2014-09-24 02:31:28 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
Comment 1 TJ Saunders 2014-09-24 02:46:33 UTC
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.
Comment 2 TJ Saunders 2014-09-24 03:05:44 UTC
Merged to master, and backported to the 1.3.5 branch.
Comment 3 TJ Saunders 2015-05-28 05:43:36 UTC
Resolved in 1.3.5a, 1.3.6rc1.