Adding timeouts to Internet sockets
Oleg Broytmann
phd at phd.fep.ru
Tue Jul 10 12:20:22 EDT 2001
On Tue, 10 Jul 2001, John Copella wrote:
> How have developers added timeout behavior to Internet sockets in Python? I
> am developing an application that uses ftplib, and I need to timeout if the
> server is unavailable, etc. I note that Tim O'Malley has a package out
> (http://www.vex.net/parnassus/apyllo.py?i=87800233) that very cleverly and
> transparently does this (or seems to). Has anyone used it? My application
> will be mission-critical, and I would prefer to use whatever is considered
> the current best practice.
I use from time to time. It does the job, though I had some minor
problems - it seems sometimes it timeouts a connection that is in progress.
Well, I am almost satisfied with it.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list