[mod_python] Re: Mod_Python 2.7.8 and threading

Hr. Daniel Mikkelsen daniel at copyleft.no
Mon Jun 2 00:55:11 EST 2003


On Sun, 1 Jun 2003, Russell Yanofsky wrote:

> Apache 1.3 doesn't _use_ threading, but this doesn't explain why merely
> calling Thread.start() in an apache process would cause it to lock up. I'm
> trying to add mod_python support to an open source project (ViewCVS) and I'd
> like to avoid making apache 2 a requirement for it, although I will try
> upgrading apache on my own server. Any more information on mod_python 2.x
> and threading would be much appreciated.

Apache 1.3 is not threadsafe. In my experience, it will crash when it's linked
to the threading libs - which is what happens if you load a threaded version of
mod_python.

I've always had to build a separate python without threading support, for use
with mod_python, when I want to use Apache 1.3.

This is probably what you've done too, or the system has done for you (or the
guy who made the binaries did). Loading "threading" in Python when Python is
built without threading support might lock it up - that could be what you're
seeing.

Either way, you will have to switch to Apache 2.0 if you want to use threading
with mod_python. This is the nature of mod_python. :)

-- Daniel



More information about the Mod_python mailing list