You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Morten Bjørnsvik <mo...@experian-da.no> on 2009/08/12 15:03:05 UTC

https connection hangs on broken pipe, http fine

Hi

For some pages we have a broken pipe. for http this does not seem to affect anything,
but for https this hangs the handler, I can press esc to stop connections, but the
httpd-process then hangs and we fork a new one. http does not for a new one.

This is legacy software which worked fine with older apache, and newer versions
have not used https until I started dig into this.

It is an exception that happens in mason and is evaluated in Apache2::RequestIO,
but here it hangs, as I never get the Apache2::Request object back to the handler.

Anyone have an idea how to catch the SIGPIPE and do proper garbage collection.

--
Thanks
MortenB


Config:
[Wed Aug 12 11:14:21 2009] [notice] Apache/2.2.13 (Unix) mod_ssl/2.2.13
OpenSSL/0.9.8g DAV/2 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.0
configured -- resuming normal operations
(it is the same with apache 2.0.63)

apache debug output with http:
[Wed Aug 12 13:50:52 2009] [info] [client 127.0.0.1] (32)Broken pipe:
core_output_filter: writing data to the network

with https:
[Wed Aug 12 13:54:49 2009] [info] Initial (No.1) HTTPS request received for
child 1 (server mortenb2.secana.local.:443)
[Wed Aug 12 13:54:49 2009] [info] [client 127.0.0.1] (32)Broken pipe:
core_output_filter: writing data to the network
[Wed Aug 12 13:54:49 2009] [info] [client 127.0.0.1] (103)Software caused
connection abort: SSL output filter write failed.
[Wed Aug 12 13:54:49 2009] [error] [client 127.0.0.1]
Apache2::RequestIO::print: (103) Software caused connection abort at
/opt/perl/lib/site_perl/5.10.0/HTML/Mason/ApacheHandler.pm line 1019, referer:
https://localhost/auth/agent-instances/
[Wed Aug 12 13:54:54 2009] [debug] ssl_engine_io.c(1869): OpenSSL: I/O error, 5
bytes expected to read on BIO#31c0da0 [mem: 3292530]
[Wed Aug 12 13:54:54 2009] [info] [client 127.0.0.1] (70007)The timeout
specified has expired: SSL input filter read failed.
[Wed Aug 12 13:54:54 2009] [debug] ssl_engine_kernel.c(1893): OpenSSL: Write:
SSL negotiation finished successfully
[Wed Aug 12 13:54:54 2009] [info] [client 127.0.0.1] Connection closed to child
1 with standard shutdown (server mortenb2.secana.local.:443)
(And the firefox load just spins, and reloading the same page just hangs).


----------------------------------------------------------------
Morten Bjørnsvik, Experian Decision Analytics AS
Sørkedalsveien 10c, Postbox 5275 Majorstua, 0303 Oslo, Norway
----------------------------------------------------------------