Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 56350 invoked from network); 1 Jan 2005 15:23:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jan 2005 15:23:56 -0000 Received: (qmail 69367 invoked by uid 500); 1 Jan 2005 15:23:55 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 69331 invoked by uid 500); 1 Jan 2005 15:23:54 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 69316 invoked by uid 99); 1 Jan 2005 15:23:54 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 01 Jan 2005 07:23:54 -0800 Received: (qmail 56318 invoked by uid 65534); 1 Jan 2005 15:23:52 -0000 Date: 1 Jan 2005 15:23:52 -0000 Message-ID: <20050101152352.56314.qmail@minotaur.apache.org> From: mturk@apache.org To: cvs@httpd.apache.org Subject: svn commit: r123840 - /httpd/httpd/trunk/modules/proxy/proxy_util.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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,