FTP without timeout?

Dave Brueck dave at pythonapocrypha.com
Mon Oct 4 18:47:21 EDT 2004


Steve Holden wrote:
> Chris wrote:
> 
>> How do I setup an FTP connection without timeout using ftplib.FTP?
[snip]
> Though frankly, from the documentation, since there doesn't appear to be 
> a default timeont on sockets, I'm not sure where this bizarre ten minute 
> timeout is coming from. The string "time" doesn't appear at all in the 
> ftplib source, so I'm somewhat stumped.
> 
> Are you sure the server doesn't require some sort of keepalive from the 
> client?

An intermediate firewall could also need a keepalive - it's not uncommon for 
them to kill idle connections after a few minutes.

-Dave



More information about the Python-list mailing list