httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54474] New: mod_proxy_connect keeps open connection to client
Date Wed, 23 Jan 2013 14:01:08 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54474

            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
          Assignee: bugs@httpd.apache.org
          Reporter: pavel@netsafe.cz
    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)
         apr_socket_close(sock);
     else

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message