On 2011/11/22 20:16, Marc Espie wrote: > - FTP_KEEPALIVE set to 0 ! ftp(1)'s keepalives have been known to cause problems with some ftp servers, so setting FTP_KEEPALIVE to 0 is safer there (otherwise ftp defaults to sending them every 60 seconds).
Usually it works well to have this disabled in ftp(1) and in the cases where your TCP connections go via a state table with short timeouts (crappy hotel nat etc), use the OS TCP keepalives instead; set net.inet.tcp.always_keepalive=1 and reduce net.inet.tcp.keepidle from the default (iirc this value is measured in half-seconds in which case the default is 2 hours).