timeout in urllib.open()
John J. Lee
jjl at pobox.com
Sun Feb 25 11:55:13 EST 2007
skip at pobox.com writes:
> >> 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.
Great. Added some comments, will try to write tests and urllib2 patch
later.
John
More information about the Python-list
mailing list