For some reason the call to 'push_handlers' does not seem to register the
'handler' with mod_perl correctly when used in the code below.  It seems
that only a few initial requests will successfully be processed by this
handler.  It then just seems to be bypassed.  It only works when the
'push_handler' code is commented out and a Perl*Handler directive is added
to the apache conf file.  Does anyone know why this is so?

Here is a snippet of code which is read in at server startup through a
'require' directive.

Apache->push_handlers(
        PerlPostReadRequestHandler=> \&handler
);

sub handler { warn "Hello World\n"; }

Reply via email to