Re: FTP without timeout?

From: Dave Brueck (dave_at_pythonapocrypha.com)
Date: 10/05/04


Date: Mon, 04 Oct 2004 16:47:21 -0600
To: python-list@python.org

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



Relevant Pages

  • Re: setting socket connect timeout
    ... I am trying to write some production code based on: ... Does anyone know how to change the timeout? ... My documentation is quite old but it did contain a statement about timeouts just ...
    (comp.os.vms)
  • RxFTP
    ... I need to open an FTP connection and do an 'ls -l' on a directory. ... appears from the documentation that only the short form is supported. ... To accomplish my automation I must have the information in the 'ls -l' ... command. ...
    (comp.lang.rexx)
  • FTP without timeout?
    ... How do I setup an FTP connection without timeout using ftplib.FTP? ... Chris ...
    (comp.lang.python)