Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 4061 invoked from network); 7 Jan 2008 23:47:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2008 23:47:44 -0000 Received: (qmail 23170 invoked by uid 500); 7 Jan 2008 23:47:30 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 22771 invoked by uid 500); 7 Jan 2008 23:47:29 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 22760 invoked by uid 99); 7 Jan 2008 23:47:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 15:47:29 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.227.30.246] (HELO datura.kippdata.de) (195.227.30.246) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 23:47:17 +0000 Received: from [192.168.2.115] ([192.168.2.115]) by datura.kippdata.de (8.13.5/8.13.5) with ESMTP id m07Nl8vB006634 for ; Tue, 8 Jan 2008 00:47:09 +0100 (CET) Message-ID: <4782B9D9.5060007@kippdata.de> Date: Tue, 08 Jan 2008 00:46:33 +0100 From: Rainer Jung User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r609757 - in /tomcat/connectors/trunk/jk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c common/jk_service.h common/jk_util.c iis/jk_isapi_plugin.c netscape/jk_nsapi_plugin.c References: <20080107194150.47D581A9850@eris.apache.org> <478294C6.6040004@apache.org> In-Reply-To: <478294C6.6040004@apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mladen Turk schrieb: > rjung@apache.org wrote: >> Author: rjung >> Date: Mon Jan 7 11:41:44 2008 >> New Revision: 609757 >> >> URL: http://svn.apache.org/viewvc?rev=609757&view=rev >> Log: >> Remove "retries" element from service struct, because >> we don't use it. >> > > I don't get it. > This copy was intentionally made so we can pass the > retries from lb to each worker, meaning that if you > set the retries to the lb it'll be propagated to each > worker that is member of this lb, allowing to set the > retries only once. But that's not what the code does, see below. The retries in the lb and in the members serve a different and independant purpose. Of course it would have been nice to give those different names and then inherit from lb to the members, but we can't change the meaning of the parameters now. See details below. > Can you explain this patch? Yes. We had "retries" in three places: A) in the service struct B) in the lb_worker struct C) in the jk_worker struct Ad A) The element retries in the service struct was set in the web server plugins to JK_RETRIES, but never read. It was not used in any place. Ad B) The retries in the lb_worker is the number of times we try to get and endpoint from the cache. For Apache with default settings, this should be noop, because we have as many endpoints as we have threads, for IIS and netscape, this will wait a bit and retry to get a free endpoint. The value gets set during lb initialization and is read from the workers.properties, attribite retries of the lb worker itself. Ad C) The retries in jk_worker is set in all types of workers (status, jni, ajp12, ajp13, ajp14) but only used in ajp13 and ajp14. Therefore I moved it from jk_worker to ajp_worker, because that's a good fit. The value gets set during ajp worker initialization rom the retries attribute of the ajp worker (or lb member). It is independent from the retries on any lb. It gets used, when the service call of the worker gets an error, e.g. if all connections are dead. Does that make sense for you? Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org