On 26/08/2006, at 6:22 AM, Jim Gallacher wrote:
There was a question on the mod_python list regarding mpcp, which
provides a mod_python handler for cherrypy. Out of curiosity I took
a look at mpcp. Low and behold, they use
req.server.register_cleanup to stop the cherrypy server.
I'm becoming increasingly concerned about dropping
server.register_cleanup. I suspect that we may end up breaking code
all over the place. MODPYTHON-109 could end up being a bigger PITA
than it already is.
Let us for the time being then simply work out for the various MPMs
under what
circumstances it may or may not work and document the various cases
in the
mod_python documentation. It may be the case that the worst of the
problems
have in fact already been solved by at least not calling Py_Finalize
() when
Apache is being shutdown. It may also be the case that perhaps
problems are
not as prevalent or do not exist in newer versions of Apache.
Anyway, I will try and do a proper analysis of what actually happens
by putting
some debug in the httpd source code and tracking through what gets
called when.
Graham