From: Jim Jagielski Date: Fri, 30 May 2014 13:49:29 +0000 (+0000) Subject: Merge r1594625 from trunk: X-Git-Tag: 2.4.10~176 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f76301506bc50bf157144ec9be90e7a660b55bc;p=apache Merge r1594625 from trunk: mod_proxy_wstunnel: Fix the use of SSL connections with the "wss:" scheme. PR55320. Submitted by: Alex Liu Committed by: ylavic Submitted by: ylavic Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1598603 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index c3920e6586..fbf6775d46 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.4.10 + *) mod_proxy_wstunnel: Fix the use of SSL connections with the "wss:" + scheme. PR55320. [Alex Liu ] + *) mod_socache_shmcb: Correct counting of expirations for status display. Expirations happening during retrieval were not counted. [Rainer Jung] diff --git a/STATUS b/STATUS index 678cd66a5c..fb8a8b941b 100644 --- a/STATUS +++ b/STATUS @@ -100,12 +100,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_proxy_wstunnel: Fix the use of SSL connections with the "wss:" scheme. - PR 55320. - trunk patch: http://svn.apache.org/r1594625 - 2.4.x patch: trunk patch works modulo CHANGES - +1: ylavic, trawick, jim - * mod_cache: Preserve non-cacheable headers forwarded from an origin 304 response. PR 55547. trunk patch: http://svn.apache.org/r1591328 diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c index aa008fa41b..a2172fe27e 100644 --- a/modules/proxy/mod_proxy_wstunnel.c +++ b/modules/proxy/mod_proxy_wstunnel.c @@ -332,9 +332,11 @@ static int proxy_wstunnel_handler(request_rec *r, proxy_worker *worker, conn_rec *c = r->connection; apr_pool_t *p = r->pool; apr_uri_t *uri; + int is_ssl = 0; if (strncasecmp(url, "wss:", 4) == 0) { scheme = "WSS"; + is_ssl = 1; } else if (strncasecmp(url, "ws:", 3) == 0) { scheme = "WS"; @@ -358,7 +360,7 @@ static int proxy_wstunnel_handler(request_rec *r, proxy_worker *worker, return status; } - backend->is_ssl = 0; + backend->is_ssl = is_ssl; backend->close = 0; retry = 0;