urllib (in thread) never returns

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Mon Jul 17 19:26:24 EDT 2006


Kingsley:
>it just sits in either the urlopen() or read() forever.
[...]
>I would have thought that some urllib-internal timeout 
>would fix this?!

Yes, but you'll need to enable it. See socket.setdefaulttimeout() :
http://docs.python.org/lib/module-socket.html

-- 
René Pijlman



More information about the Python-list mailing list