]> granicus.if.org Git - apache/commitdiff
* Check for an existing socket independant of an existing connection record.
authorRuediger Pluem <rpluem@apache.org>
Sat, 8 Apr 2006 21:43:24 +0000 (21:43 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sat, 8 Apr 2006 21:43:24 +0000 (21:43 +0000)
  This ensures that requests handled by the '*' worker are sent to the correct
  backend server.

PR: 39253

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@392613 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/proxy/proxy_util.c

diff --git a/CHANGES b/CHANGES
index 5389147370de1d08bb5429321cbf9cebaa555dc0..5b22308f15f6007f1a2a911d2676af4d8787d6d4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 Changes with Apache 2.3.0
   [Remove entries to the current 2.0 and 2.2 section below, when backported]
 
+  *) mod_proxy: Forward proxy requests created by mod_rewrite to the correct
+     backend server. PR 39253. [Ruediger Pluem]
+
   *) Default handler: Don't return output filter apr_status_t values.
      PR 31759.  [Jeff Trawick, Ruediger Pluem, Joe Orton]
 
index e28687ec25818a311176c179a987d2de3c779c36..104b465e68563c8321c51b9873cce6da946eca92 100644 (file)
@@ -1870,11 +1870,11 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
             conn->hostname = apr_pstrdup(conn->pool, uri->hostname);
             conn->port = uri->port;
         }
+        if (conn->sock) {
+            apr_socket_close(conn->sock);
+            conn->sock = NULL;
+        }
         if (conn->connection) {
-            if (conn->sock) {
-                apr_socket_close(conn->sock);
-                conn->sock = NULL;
-            }
             apr_pool_cleanup_kill(conn->connection->pool, conn, connection_cleanup);
             conn->connection = NULL;
         }