ftplib timeout in Python 2.4
r0g
aioe.org at technicalbloke.com
Thu Dec 17 16:24:12 EST 2009
Nico Grubert wrote:
>> I don't know of one so you may need a workaround. What platforms do you
>> need to support?
>
> Suse Linux Enterprise 10, 64 Bit with Python 2.4.4.
> I need the Python 2.4.4 for a running application Server (Zope).
OK, then one approach would be to use signals.alarm(timeout) to raise
SIGALRM and break out of your FTP function. Have a look at the example
at the very bottom of...
http://docs.python.org/library/signal.html
Roger.
More information about the Python-list
mailing list