Found a new problem. If the callback returns a bogus error code, no error is logged, but 500 is sent.
For example:
Index: t/hooks/TestHooks/push_handlers.pm =================================================================== --- t/hooks/TestHooks/push_handlers.pm (revision 111452) +++ t/hooks/TestHooks/push_handlers.pm (working copy) @@ -38,7 +38,7 @@ }
sub end { return Apache::DONE } -sub say { shift->print(shift,"\n"); return Apache::DECLINED } +sub say { shift->print(shift,"\n"); 12345 }
sub conf { # this one is configured from httpd.conf
just sends 500 to the client, nothing in the logs.
which is OK, since there is no error in the code, it just returns a non-existing error code.
This brings us to a more painful problem. the code in startup.pl:
$s->push_handlers(PerlPostConfigHandler => sub { 12345 });
won't let the server start, and no error is logged, the server just quits.
but this is a problem. I can't figure out why the server fails (won't start here). I think for post_config phase it absolutely wants a valid OK or another return code. Philippe, please take a look at the apache source code. I think the answer will be there.
probably unrelated, but when tracing this test I got:
modperl_handler_resolve: [8896/1107602352 rabbit.stason.org:8529] handler TestHooks::push_handlers::conf was not compiled at startup, attempting to resolve using current pool 0x9f71a40
modperl_callback_run_handlers: TestHooks::push_handlers::conf returned 12345
modperl_callback_run_handlers: error status 12345 leaves 1078468780 uncalled handlers
"1078468780 uncalled handlers" - wow, that's a lot :)
this was a broken format string, now fixed in svn.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
