httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r123842 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Sat, 01 Jan 2005 16:04:27 GMT
Author: mturk
Date: Sat Jan  1 08:04:25 2005
New Revision: 123842

URL: http://svn.apache.org/viewcvs?view=rev&rev=123842
Log:
Fix closing connection for non-cachable proxies.
Do not close the entire connection, just socket if
opened.
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=123842&p1=httpd/httpd/trunk/modules/proxy/proxy_util.c&r1=123841&p2=httpd/httpd/trunk/modules/proxy/proxy_util.c&r2=123842
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c	(original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c	Sat Jan  1 08:04:25 2005
@@ -1665,9 +1665,9 @@
         !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);
+        if (conn->sock) {
+            apr_socket_close(conn->sock);
+            conn->sock = NULL;
         }
         err = apr_sockaddr_info_get(&(conn->addr),
                                     conn->hostname, APR_UNSPEC,

Mime
View raw message