Steve Hay wrote:

Does the patch below help at all? I'm not quite sure whether localization works, so just trying it that way.


Sadly not. Again I've tried it with and without the APACHE_TEST_PRETEND_NO_LWP=1 setting, and sometimes get failures as before.

I also didn't see the warn()'ing that your patch emits when the client gets a SIGPIPE anywhere, either - neither in the console window nor in the error_log.

May be it's different on win32, when the socket is closed on the reading client. I was getting the SIGPIPE on linux only when the print was in Apache::TestClient, not with $s->send(), which was failing silently without die'ing or throwing any signals. I wasn't getting any problems when using LWP. Perhaps this is something that needs to be fixed in perl. You can try the test case that I have posted to p5p:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-09/msg01112.html


+my $old_sigpipe = $SIG{PIPE};
+$SIG{PIPE} = sub { warn "That's right! I received SIGPIPE and ignored it\n" };
my $received = POST_BODY $location, content => $data;
+$SIG{PIPE} = $old_sigpipe if $old_sigpipe;


ok t_cmp($expected, $received, "input stream filter partial consume")


__________________________________________________________________
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