From: Eric Covener Date: Tue, 15 Apr 2014 17:56:00 +0000 (+0000) Subject: followup to r1587036. X-Git-Tag: 2.5.0-alpha~4303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fd249108f0d2f90b15239f6c576a1218ad03375;p=apache followup to r1587036. if backend->close is set too early, proxy_util.c will close it right away and then blow away the field. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1587654 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c index 7fbafb2007..3d105e84f9 100644 --- a/modules/proxy/mod_proxy_wstunnel.c +++ b/modules/proxy/mod_proxy_wstunnel.c @@ -474,7 +474,7 @@ static int proxy_wstunnel_handler(request_rec *r, proxy_worker *worker, } backend->is_ssl = 0; - backend->close = 1; + backend->close = 0; retry = 0; while (retry < 2) { @@ -503,6 +503,8 @@ static int proxy_wstunnel_handler(request_rec *r, proxy_worker *worker, break; } + backend->close = 1; /* must be after ap_proxy_determine_connection */ + /* Step Three: Process the Request */ status = ap_proxy_wstunnel_request(p, r, backend, worker, conf, uri, locurl, server_portstr, scheme);