Threading problems with httplib

Alan Kennedy alanmk at hotmail.com
Mon May 12 08:24:55 EDT 2003


David Fendrich wrote:

> I tried 2.3b1 and the lock-ups still remain. I am now also quite
> certain that httplib is not thread safe. 

Hmm, that is worrying.

I've been using httplib in a multi-threaded situation with no problems
at all (Python 2.3a2, Win 2k). The usage is for load testing, where I
run multiple "virtual" users to load a server, and each runs in its own
thread. Httplib is used simultaneously in every thread: Hasn't given me
a single problem.

I don't share 'HTTPConnection's between threads though. What are you
sharing between the threads that could be causing the problem?

regards,

-- 
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan:              http://xhaus.com/mailto/alan




More information about the Python-list mailing list