Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 38901 invoked from network); 9 Sep 2007 19:53:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2007 19:53:41 -0000 Received: (qmail 20399 invoked by uid 500); 9 Sep 2007 19:53:28 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 20333 invoked by uid 500); 9 Sep 2007 19:53:28 -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 20321 invoked by uid 99); 9 Sep 2007 19:53:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Sep 2007 12:53:28 -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: domain of spam_from_apache_dev_2@chezphil.org designates 77.240.5.4 as permitted sender) Received: from [77.240.5.4] (HELO japan.chezphil.org) (77.240.5.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Sep 2007 19:53:24 +0000 Received: from localhost ([127.0.0.1] helo=chezphil.org) by japan.chezphil.org with esmtp (Exim 4.67) (envelope-from ) id 1IUSq6-0001nk-22 for dev@httpd.apache.org; Sun, 09 Sep 2007 20:53:02 +0100 Received: from localhost ([127.0.0.1]) by japan with smtp (dmsmtpd 0.00001); Sun, 09 Sep 2007 20:53:01 +0100 To: "Phil Endecott" Cc: Date: Sun, 09 Sep 2007 20:53:00 +0100 Subject: Re: mod_proxy: Is smax=0 allowed ? Message-ID: <1189367580804@dmwebmail.japan.chezphil.org> In-Reply-To: <1189120594335@dmwebmail.japan.chezphil.org> References: <1189120594335@dmwebmail.japan.chezphil.org> X-Mailer: Decimail Webmail 3alpha16 MIME-Version: 1.0 Content-Type: text/plain; format="flowed" From: "Phil Endecott" Received-SPF: pass X-SPF-Guess: pass X-Virus-Checked: Checked by ClamAV on apache.org Phil Endecott wrote: > Phil Endecott wrote: >> I'm going to have another look at the source, and see whether I can >> change the sentinel value for "smax not specified" from 0 to -1, so >> that 0 can really mean zero. > > I have tried the following: > > Index: proxy_util.c > =================================================================== > --- proxy_util.c (revision 573391) > +++ proxy_util.c (working copy) > @@ -1752,7 +1752,7 @@ > if (worker->hmax == 0 || worker->hmax > mpm_threads) { > worker->hmax = mpm_threads; > } > - if (worker->smax == 0 || worker->smax > worker->hmax) { > + if (worker->smax == -1 || worker->smax > worker->hmax) { > worker->smax = worker->hmax; > } > /* Set min to be lower then smax */ > Index: mod_proxy.c > =================================================================== > --- mod_proxy.c (revision 573391) > +++ mod_proxy.c (working copy) > @@ -1263,6 +1263,7 @@ > } > PROXY_COPY_CONF_PARAMS(worker, conf); > > + worker->smax = -1; > for (i = 0; i < arr->nelts; i++) { > const char *err = set_worker_param(cmd->pool, worker, elts[i].key, > elts[i].val); > > This does seem to result in smax=0 being used, but it breaks something; > as far as I can see the requests never reach the backend. I have taken > the source from trunk and am loading the module into my 2.2.4 server OK, I've tried again with the same patch applied to the 2.2.4 source, and it seems to be somewhat working; I think I've seen the backend drop to zero connections. > I would much appreciate some input from someone who knows their way > around this code. Please! Regards, Phil.