Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 85704 invoked from network); 5 Sep 2008 15:34:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2008 15:34:57 -0000 Received: (qmail 88494 invoked by uid 500); 5 Sep 2008 15:34:53 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 88474 invoked by uid 500); 5 Sep 2008 15:34:52 -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 88463 invoked by uid 99); 5 Sep 2008 15:34:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 08:34:52 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.232.246.84] (HELO mo1.vodafone.com) (195.232.246.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 15:33:53 +0000 Received: from mi1.vodafone.com (mi1.vodafone.com [195.232.246.138]) by mo1.vodafone.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id m85FYMxm011783 for ; Fri, 5 Sep 2008 17:34:22 +0200 Received: from avoexs01.internal.vodafone.com ([145.230.4.134]) by mi1.vodafone.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id m85FYMLx023928 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 5 Sep 2008 17:34:22 +0200 Received: from VF-MBX11.internal.vodafone.com ([145.230.5.20]) by avoexs01.internal.vodafone.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 5 Sep 2008 17:34:23 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Behaviour of mod_proxy_ajp if CPING/CPONG fails Date: Fri, 5 Sep 2008 17:34:20 +0200 Message-ID: <99EA83DCDE961346AFA9B5EC33FEC08B011B9D3F@VF-MBX11.internal.vodafone.com> In-Reply-To: <48C14B22.4000003@apache.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Behaviour of mod_proxy_ajp if CPING/CPONG fails Thread-Index: AckPaTGChbL53/DnQfmeiI8ojbQmdgAAsuTA References: <99EA83DCDE961346AFA9B5EC33FEC08B011B9D31@VF-MBX11.internal.vodafone.com> <48C14B22.4000003@apache.org> From: =?iso-8859-1?Q?=22Pl=FCm=2C_R=FCdiger=2C_VF-Group=22?= To: X-OriginalArrivalTime: 05 Sep 2008 15:34:23.0787 (UTC) FILETIME=[DF87BFB0:01C90F6C] X-Virus-Checked: Checked by ClamAV on apache.org =20 > -----Urspr=FCngliche Nachricht----- > Von: Mladen Turk=20 > Gesendet: Freitag, 5. September 2008 17:07 > An: dev@httpd.apache.org > Betreff: Re: Behaviour of mod_proxy_ajp if CPING/CPONG fails >=20 > Pl=FCm, R=FCdiger, VF-Group wrote: >=20 > > So after the first failed CPING/CPONG we should try again=20 > with a new TCP connection > > and should only return HTTP_SERVICE_UNAVAILABLE if this=20 > fails as well. The following > > (and attached patch) does exactly that. Thoughs to the=20 > above and/or to the patch > > before I commit? > > >=20 > +1 for the concept. > However for threaded servers you should call > ap_proxy_acquire_connection inside retry loop, cause there might > be available connections inside the pool. I don't think that this does what you want. If I simply continue to acquire connections from the pool without returning the faulty ones back before, other threads might starve because they cannot get = connections from the reslist any longer (not even faulty ones, that they would = reopen). If I return the faulty connection to the reslist, there is some = likelyhood that I get the same connection back within the next acquire as the = reslist is organized as a stack. IMHO this approach would only work if the = reslist was organized as a queue, which it is no longer in order to get the ttl feature in conjunction with smax working correctly. Regards R=FCdiger