timeout in urllib.open()

skip at pobox.com skip at pobox.com
Sun Feb 25 06:28:38 EST 2007


    >> I believe this can only be set globally:
    >> 
    >> import socket
    >> socket.setdefaulttimeout(seconds)

    Stefan> Uuuh this is no solution for me, because the website-checking
    Stefan> tool is part of a very very big application running in an
    Stefan> application server, so globally setting the timeout may break a
    Stefan> lot of other things...

Can you try this patch:

    http://python.org/sf/723312

?  It's against current CVS.  Also, it doesn't include urllib or urllib2
changes, just httplib.  Getting this completed would be nice.

Skip



More information about the Python-list mailing list