Q: urlopen and timeout

Hwanjo Yu hwanjoyu at uiuc.edu
Wed Feb 7 17:45:38 EST 2001


Hi,
It seems there is no way for us to set up the timeout explicitly in the
urlopen function.
Although it may have the default timeout in the function, it seems to wait
forever sometimes because of the unexpected web site's behavior.  Is there
any way to set the timeout explicitly ?
And,
The socket function also doesn't have timeout parameter, so I don't have any
idea when the socket connection function is gonna return.
How to set timeout for these cases ?
Thanks.





More information about the Python-list mailing list