python urllib2 thread safety

Posted by jldupont on Stack Overflow See other posts from Stack Overflow or by jldupont
Published on 2010-05-30T20:11:48Z Indexed on 2010/05/30 20:32 UTC
Read the original article Hit count: 381

Filed under:
|
|

Is urllib2 thread safe?

I find that using urllib2.urlopen sometimes results in the thread issuing the call to stop functioning. Yes I have used the timeout option to no avail.

Is there a thread safe HTTP GET functionality I could use?

NOTE: I am not interested in using Twisted to solve this problem. I have used Twisted in the past and I love it but this time I need a simpler solution.

NOTE2: I also tried httplib with the same result (blocking).

© Stack Overflow or respective owner

Related posts about python

Related posts about thread-safety