Steve Hay wrote:
Stas Bekman wrote:

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


I tried out your test case (using perl-5.8.1-RC5) and my client doesn't get the SIGPIPE - it just says "done", and the server has read 10 "x"s. (I tried perl-5.8.0 too, with the same result.)

Is that good or bad? Nick I-S and yourself seem to agree in follow-ups to that mail that the SIGPIPE was a good thing.

But you don't get it on win32. I was trying to emulate the situation that we were struggling with before, trying to make the client gracefully resolve a closed socket. That test case seems to represent quite well what was happening on linux, may be on win32 the server behaves differently and that's why this test doesn't reproduce the problem. Oh well, let's put this case to rest then.
Thank you for testing it, Steve.



__________________________________________________________________ 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