Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 2403 invoked from network); 5 Sep 2007 06:58:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 06:58:56 -0000 Received: (qmail 31190 invoked by uid 500); 5 Sep 2007 06:58:40 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 31123 invoked by uid 500); 5 Sep 2007 06:58:40 -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 31091 invoked by uid 99); 5 Sep 2007 06:58:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 23:58:40 -0700 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 [193.56.114.156] (HELO smtp2.fr.adp.com) (193.56.114.156) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 06:59:52 +0000 Received: from exchange2k304.gaia.fr ([150.175.10.77]) by smtp2.fr.adp.com (xx/xx) with ESMTP id l856wExD002373 for ; Wed, 5 Sep 2007 08:58:14 +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: mod_proxy: Is smax=0 allowed ? Date: Wed, 5 Sep 2007 08:58:13 +0200 Message-ID: In-Reply-To: <1188943518378@dmwebmail.japan.chezphil.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: mod_proxy: Is smax=0 allowed ? Thread-Index: AcfvP8Xf/3dyisXwQSaaW8/RPWLYMgASeUrg References: <1188943518378@dmwebmail.japan.chezphil.org> From: =?iso-8859-1?Q?Axel-St=E9phane__SMORGRAV?= To: X-Virus-Checked: Checked by ClamAV on apache.org Seems like you are right about the smax=3D0. Luckily for you, according to the documentation you may control the = persistency of the backend connection with the environment variable = proxy-nokeepalive just like you can control the persistency of client = connections with the environment variable nokeepalive. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#envsettings -ascs -----Message d'origine----- De : Phil Endecott [mailto:spam_from_apache_dev_2@chezphil.org]=20 Envoy=E9 : mercredi 5 septembre 2007 00:05 =C0 : dev@httpd.apache.org Objet : mod_proxy: Is smax=3D0 allowed ? Dear Experts, According to the mod_proxy docs, parameters to ProxyPass include: smax max Upto the Soft Maximum number of connections will be=20 created on demand. Any connections above smax are subject to a time to live = or ttl. So, am I allowed to set smax=3D0 ? In my case, I don't want any = permanent connections to the backend server; when the site is being used = connections should be created and can persist for a while and then time = out. So I tried "smax=3D0 ttl=3D60". But I have not seen any = connections being dropped. So I looked at the source, and in = proxy_util.c there is some code that does this: if (worker->smax =3D=3D 0 || worker->smax > worker->hmax) { worker->smax =3D worker->hmax; } So it looks like 0 is a sentinel for "no value specified", and the = default of the hard maximum is applied in that case. Is this a correct = understanding of the code? If so, is this the desired behaviour? Is it = possible to keep no permanent connections to the backend server? Many thanks for any advice. Regards, Phil. (I'm subscribed to the digest so I'll see any replies sooner if you Cc: = me)