timeout in urllib.open()
Stefan Palme
kleiner at hora-obscura.de
Mon Feb 19 06:54:26 EST 2007
>>> [Peter]
>>> I believe this can only be set globally:
>>>
>>> import socket
>>> socket.setdefaulttimeout(seconds)
>>>
>> [Stefan]
>> ...
>> But when there is a "default timeout" (as indicated by
>> the method name) - isn't there a "per-socket timeout"
>> too?
>
> [Peter]
> Yes, but it isn't as easily available...
>
> Perhaps you find some ideas here:
>
> http://mail.python.org/pipermail/python-dev/2007-February/070897.html
Thanks, will have a look at this.
Regards
-stefan-
More information about the Python-list
mailing list