Java Mailing List Archive

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

Home » modperl.perl »

cleanup_register(..) works but not
push_handlers(PerlCleanupHandler ..)

Louis-David Mitterrand

2010-08-12


Author LoginPost Reply
Hi,

Using modperl 2.0.4 and HTML::Mason I noticed the following problem:

 $r->push_handlers(PerlCleanupHandler => sub {...})

is not executed, however:
 
 $r->pool->cleanup_register({}, $arg)

works fine.

In both cases I use:

 $r->connection()->keepalive(Apache2::Const::CONN_CLOSE);

to avoid any keepalive side effect.

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