Can urllib be used with nonblocking sockets?

Arne Schwabe arne at rfc2549.org
Sun May 4 08:08:43 EDT 2003


Skip Montanaro <skip at pobox.com> writes:

>> I have written a little python program that uses non-blocking
>> sockets with select and I now want to urrlib in my program and I
>> cannot find a method in urllib that would allow me to tell urllib
>> that it should use non blocking sockets.
>
> In 2.3 you can set the default timeout for sockets before opening the URL:

That does not help me I want non_blocking sockets a timeout of for example 15 is
still too much :(

Arne







More information about the Python-list mailing list