httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r123840 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Sat, 01 Jan 2005 15:23:52 GMT
Author: mturk
Date: Sat Jan  1 07:23:51 2005
New Revision: 123840

URL: http://svn.apache.org/viewcvs?view=rev&rev=123840
Log:
Close the connection for generic forward and
reverse proxy workers.
Modified:
   httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/proxy_util.c?view=diff&rev=123840&p1=httpd/httpd/trunk/modules/proxy/proxy_util.c&r1=123839&p2=httpd/httpd/trunk/modules/proxy/proxy_util.c&r2=123840
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c	(original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c	Sat Jan  1 07:23:51 2005
@@ -1658,9 +1658,17 @@
             conn->port = uri->port;
         }
     }
-    /* TODO: add address cache for forward proxies */
+    /* TODO: add address cache for generic forward proxies.
+     * At least level 0 -> compare with previous hostname:port
+     */
     if (r->proxyreq == PROXYREQ_PROXY || r->proxyreq == PROXYREQ_REVERSE ||
         !worker->is_address_reusable) {
+        /* TODO: Check if the connection can be reused
+         */
+        if (conn->connection) {
+            conn->close = 1;
+            ap_proxy_release_connection("*", conn, r->server);
+        }
         err = apr_sockaddr_info_get(&(conn->addr),
                                     conn->hostname, APR_UNSPEC,
                                     conn->port, 0,

Mime
View raw message