Q: urlopen and timeout

Oleg Broytmann phd at phd.pp.ru
Thu Feb 8 07:30:14 EST 2001


On Wed, 7 Feb 2001, Hwanjo Yu wrote:
> 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 ?

   timeoutsocket.py at http://www.timo-tasi.org/python/

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list