[mod_python] Re: child process XXXX still did not exit, sending a SIGTERM

Graham Dumpleton grahamd at dscpl.com.au
Tue Jan 3 17:17:19 EST 2006


Martin Blais wrote ..
> On 1/3/06, Martin Blais <blais at furius.ca> wrote:
> Question:
> Why do we need to create a new thread state on every handler call?  Is
> this for  MPM worker support?

You need to do it for threading in general in Python, which in practice
is only really relevant to MPM worker.

Technically you don't have to create one on every call if you were to
have a pool of thread state objects which you reuse, but it is simpler
to just create one for each top level request. It serves the same
purpose without the complexity of some pooling data structures for
thread state objects.

Graham


More information about the Mod_python mailing list