Stas Bekman wrote:

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

Hurrah! I've just done 12 runs each with and without APACHE_TEST_PRETEND_NO_LWP set, and all 24 ran OK.


I think you've cracked it at last. Well done!

- Steve



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);




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to