httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54474] New: mod_proxy_connect keeps open connection to client
Date Wed, 23 Jan 2013 14:01:08 GMT

            Bug ID: 54474
           Summary: mod_proxy_connect keeps open connection to client
           Product: Apache httpd-2
           Version: 2.4.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: mod_proxy_connect
    Classification: Unclassified

RFC 2817 section 5.3 Establishing a Tunnel with CONNECT says:
"If at any point either one of the peers gets disconnected, any
outstanding data that came from that peer will be passed to the other
one, and after that also the other connection will be terminated by
the proxy."
Which is not what apache 2.4 does.

After upgrade from apache 2.2.23 to 2.4.3 I've encountered problem loading page
without Content-Length from HTTPS backend thru proxy.
Backend server sends webpage and closes connection just fine. Proxy keeps
connection to client open and eventually closes it after few seconds with
message "AH01382: Request header read timeout".

Strange thing is that all requests were fine in 2.2.23 and requests with
defined Content-Length are fine in 2.4.3 too.

I was able to make naive workaround which is probably completelly wrong:

--- httpd-2.4.3/modules/proxy/mod_proxy_connect.c  2012-07-28
16:40:23.000000000 +0200
+++ httpd-2.4.3-fixed/modules/proxy/mod_proxy_connect.c   2013-01-23
14:38:10.000000000 +0100
@@ -481,6 +481,8 @@
      * Close the socket and clean up

+    apr_socket_close(client_socket);
     if (client_error)

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message