Andrew Maltsev wrote:
I'm having some problems converting a 1.x mod_perl application to 2.x
mod_perl.

I use redhat 9, mod_perl-1.99_07-5 rpm, httpd-2.0.40-21.5 rpm, perl
5.8.0, pre-fork mpm.

The way the application works is that it installs a TransHandler
to decide if it needs to bother handling content (based on uri
among other things) and then calls push_handlers(PerlHandler =>
$content_handler_sub) to install the bulk of the content processing.

It works perfectly fine under 1.x, under heavy load, no problems at all.

Under 2.x the content handler is not executed even if installed. I
tried $r->push_handlers, $s->push_handlers (don't really understand
the difference at this point, can't find what to read about it),
tried PerlHandler, PerlResponseHandler (which seem to be aliases).

I verified using get_handlers that the handler really gets installed,
but nonetheless -- my content handler never gets called.

Is there something obvious that I miss?

It should work just fine in the latest mod_perl. We have quite a few tests that verify that. Upgrade to the mod_perl 1.99_11 (which requires httpd-2.0.46 or higher) and try again. If the problem persists please post a short module reproducing the problem. Thanks.




__________________________________________________________________
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


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to