Stas Bekman wrote:
[...]
It's a known problem. I'll commit a fix soonish (I need to do some extra testing and rewrites). Meanwhile please replace
- read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); + $r->read($buffer, $ENV{'CONTENT_LENGTH'});
That should do the trick.
thanks a lot, works fine. is there any penalty of this method?
Quite the opposite. It's faster since it does a direct read, when you read from STDIN it goes (usually) through PerlIO which adds an overhead of extra indirection.
If you s/SetHandler perl-script/SetHandler modperl/ it'll be even faster. Though first you should read:
http://perl.apache.org/docs/2.0/user/config/config.html#C_SetHandler_
__________________________________________________________________ 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