cleanup_register(..) works but notpush_handlers(PerlCleanupHandler ..)

cleanup_register(..) works but notpush_handlers(PerlCleanupHandler ..)

am 12.08.2010 08:16:16 von Louis-David Mitterrand

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?