[mod_python] execution time limit

Graham Dumpleton grahamd at dscpl.com.au
Tue Jan 9 17:19:06 EST 2007


Michael Rasmussen wrote ..
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, 9 Jan 2007 16:17:56 -0500
> "Graham Dumpleton" <grahamd at dscpl.com.au> wrote:
> 
> > 
> > Would only work if prefork MPM was being used, can't work if using
> > worker MPM or Windows.
> > 
> Come to think of it, if my suggestion is valid it could be implemented
> as a feature in mod_python. Any runnable wanting to implement timeout
> must extend from object timeout an provide implementation for the
> function. E.g extend the example from page 219 in the cookbook 

You've lost me. What cookbook are you talking about?

The basic problem still remains though is if you are talking about a handler
running under mod_python, you can't just go killing off the Apache child
process as ignoring the fact of whether it is even a good idea, it would only
be possible on prefork MPM. If you did it with the worker MPM you can
kill of concurrent requests and on Windows you would potentially be
killing off the whole Apache server.

If you are talking about within a CGI script that is different, but then that
has got nothing to do with mod_python.

Can you provide a better description?

Graham


More information about the Mod_python mailing list