Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Re: Porting Bricolage to mp2: TransHandler Interference

David E. Wheeler

2008-04-23

Replies: Find Java Web Hosting

Author LoginPost Reply
On Apr 23, 2008, at 11:09, Geoffrey Young wrote:

> cleanup handlers are just callbacks run when a memory pool goes out
> of scope.

Oh. And here I thought that they ran when the request completed.

> your test suggests that the memory pool allocated for the request is
> going out of scope before the response handler runs, which is odd
> indeed :)

Any idea how that can happen? Or what that weird /101/ "subrequest" is
about?

> I'd try these things:
>
> o use a PerlLogHandler instead of a PerlCleanupHandler

But that runs before the request is returned to the user, right?

> o push your cleanup from an earlier phase instead of httpd.conf
>
> o call $r->cleanup_register from an earlier phase instead of
> pushing a handler

Thanks, I'll give those a try, just as soon as I finish building a
debugging perl + mod_perl + Apache system to debug another issue on
the developers list. :-)

Thanks,

David

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.