Patch: httplib.py default timeout

Aahz Maruch aahz at netcom.com
Fri Dec 24 10:23:09 EST 1999


In article <38634ba8.3512711 at news.iol.ie>,
Sean Mc Grath <digitome at iol.ie> wrote:
>On 22 Dec 1999 17:10:09 GMT, aahz at netcom.com (Aahz Maruch) wrote:
>>
>>No, I'm not including the actual patch here.  I just wanted to see if
>>anyone had an objection to changing httplib.py so that by default it
>>times out after sixty seconds.  To maintain the current behavior, you'd
>>have to pass in a parameter of 'timeout=0'.
>
>I'd be interested in hearing the pros/cons of going this route versus
>packaging socket stuff behind threads with associated timeouts.

This requires that the platform support threads.  Given the current lack
of universal support for threads, I think this is a non-starter.  The
other option, of course, is to use non-blocking sockets, but I think
polling is a bad idea for a universal solution.
--
                      --- Aahz (@netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

TEOTWAWKI -- 8 days and counting!



More information about the Python-list mailing list