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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]