http request timeout
Markus Schaber
markus at schabi.de
Tue Oct 2 17:36:48 EDT 2001
Hi,
Garth Grimm <garth_grimm at hp.com> schrub:
> I would think that dealing with this failure mode would be fairly
> typical. Have I missed an obvious
> built-in solution? If there is none, what approaches have others used
> to best handle this in Python?
There already was the suggestion for the timeoutsocket, but another way
might be to use select() to wait for more than one action. This way,
one thread can wait for input on multiple connections, and e. G. for a
message from a watchdog thread. Asynchroneous IO is useful in lots of
cases, but somehow more difficult to program.
markus
--
"The strength of the Constitution lies entirely in the determination of
each citizen to defend it. Only if every single citizen feels duty
bound to do his share in this defense are the constitutional rights
secure." -- Albert Einstein
More information about the Python-list
mailing list