perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morten Bjørnsvik <>
Subject https connection hangs on broken pipe, http fine
Date Wed, 12 Aug 2009 13:03:05 GMT

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.


[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] (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] (32)Broken pipe:
core_output_filter: writing data to the network
[Wed Aug 12 13:54:49 2009] [info] [client] (103)Software caused
connection abort: SSL output filter write failed.
[Wed Aug 12 13:54:49 2009] [error] [client]
Apache2::RequestIO::print: (103) Software caused connection abort at
/opt/perl/lib/site_perl/5.10.0/HTML/Mason/ line 1019, referer:
[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] (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] 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

View raw message