Steve, I still want you to followup on the suggestions I made in the previous post, however this should fix the problem. Thanks.

Index: t/filter/TestFilter/in_str_consume.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/t/filter/TestFilter/in_str_consume.pm,v
retrieving revision 1.9
diff -u -r1.9 in_str_consume.pm
--- t/filter/TestFilter/in_str_consume.pm 18 Sep 2003 08:10:32 -0000 1.9
+++ t/filter/TestFilter/in_str_consume.pm 23 Sep 2003 02:20:10 -0000
@@ -106,6 +106,12 @@


     if ($r->method_number == Apache::M_POST) {
         my $data = ModPerl::Test::read_post($r);
+
+        # tell Apache to get rid of the rest of the request body
+        # if we don't a client will get a broken pipe and may fail to
+        # handle this situation gracefully
+        $r->discard_request_body;
+
         my $len = length $data;
         debug "HANDLER READ: $len bytes\n";
         $r->print($len);


__________________________________________________________________ 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]



Reply via email to