how best to handle httplib timeouts ?

John J. Lee jjl at pobox.com
Wed Jul 30 07:23:27 EDT 2003


"Rich" <rich at mchsi.com> writes:
[...]
> getting a page via httplib. the problem seems to be when IIS (or ASP) dies
> httplib does not always return and sometimes I'm left with an app that
> hangs. what is the best way to handle this ?
[...]

2.3 has timeout support for sockets (but not for DNS, IIRC).


John




More information about the Python-list mailing list