]> granicus.if.org Git - apache/commitdiff
Merge r1594625 from trunk:
authorJim Jagielski <jim@apache.org>
Fri, 30 May 2014 13:49:29 +0000 (13:49 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 30 May 2014 13:49:29 +0000 (13:49 +0000)
mod_proxy_wstunnel: Fix the use of SSL connections with the "wss:" scheme.
                    PR55320.

Submitted by: Alex Liu <alex.leo.ca gmail.com>
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

CHANGES
STATUS
modules/proxy/mod_proxy_wstunnel.c

diff --git a/CHANGES b/CHANGES
index c3920e6586f35052fc63aacea4f7de8273b2bb6e..fbf6775d464f5dffbde0e441b30af3d2175520a3 100644 (file)
--- 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 <alex.leo.ca gmail.com>]
+
   *) 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 678cd66a5cb683447cf5eb8614675d431b44ee06..fb8a8b941b1458a8af30c020c90cbfe363003d8f 100644 (file)
--- 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
index aa008fa41b0f4b6b63cea77447c4e2bf740e2aa1..a2172fe27e2104eb43612ec1740609e6816d85c7 100644 (file)
@@ -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;