[mod_python] Re: Re: Mod_Python 2.7.8 and threading

Russell Yanofsky rey4 at columbia.edu
Sun Jun 1 19:58:30 EST 2003

Hey, thanks for your help. I installed apache 2 and everything began to
work! I still don't understand the behavior with apache 1.3. The fact that
apache code is not threadsafe doesn't explain why threading.Thread.start()
(which doesn't invoke any apache code) deadlocks. And AFAICT, there's only
one version of python installed on my system and it does support threading.
Oh well, hopefully apache 1.3 will go away soon.

- Russ

Hr. Daniel Mikkelsen wrote:
> 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