Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 45083 invoked from network); 18 Mar 2010 18:23:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 18:23:40 -0000 Received: (qmail 53289 invoked by uid 500); 18 Mar 2010 18:23:40 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 53189 invoked by uid 500); 18 Mar 2010 18:23:39 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 53181 invoked by uid 99); 18 Mar 2010 18:23:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 18:23:39 +0000 X-ASF-Spam-Status: No, hits=-2.4 required=10.0 tests=AWL,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [188.40.99.202] (HELO eru.sfritsch.de) (188.40.99.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 18:23:32 +0000 Received: from [10.1.1.6] (helo=k.localnet) by eru.sfritsch.de with esmtp (Exim 4.69) (envelope-from ) id 1NsKNC-0002ve-HA for dev@httpd.apache.org; Thu, 18 Mar 2010 19:23:10 +0100 From: Stefan Fritsch To: dev@httpd.apache.org Subject: Re: svn commit: r924455 - /httpd/httpd/trunk/modules/proxy/mod_proxy_connect.c Date: Thu, 18 Mar 2010 19:23:09 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.32-3-amd64; KDE/4.3.4; x86_64; ; ) References: <20100317200842.4E50A238897D@eris.apache.org> <4BA1C91C.200@apache.org> In-Reply-To: <4BA1C91C.200@apache.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003181923.09559.sf@sfritsch.de> On Thursday 18 March 2010, Ruediger Pluem wrote: > On 17.03.2010 21:08, sf@apache.org wrote: > > Author: sf > > Date: Wed Mar 17 20:08:42 2010 > > New Revision: 924455 > > > > URL: http://svn.apache.org/viewvc?rev=924455&view=rev > > Log: > > If the client disconnects and the backend continues to send data > > fast, forcibly close the backend connection. > > > > Modified: > > httpd/httpd/trunk/modules/proxy/mod_proxy_connect.c > > > > Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_connect.c > > URL: > > http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_ > >proxy_connect.c?rev=924455&r1=924454&r2=924455&view=diff > > ================================================================= > >============= --- > > httpd/httpd/trunk/modules/proxy/mod_proxy_connect.c (original) > > +++ httpd/httpd/trunk/modules/proxy/mod_proxy_connect.c Wed Mar > > 17 20:08:42 2010 @@ -472,7 +477,10 @@ static int > > proxy_connect_handler(request * Close the socket and clean up > > */ > > > > - ap_lingering_close(backconn); > > + if (client_error) > > + apr_socket_close(sock); > > Why do we need to close the socket to the client? IMHO this should > be done by the regular mechanism. This is not the the socket to the client but the socket to the backend. Probably it would be done by the pool cleanup anyway, but the goal is to avioid a lingering close which would just be a waste of bandwidth. Closing the socket explicitly seemed to be the right thing to do.