Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 52532 invoked from network); 24 Jun 2002 12:20:19 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 24 Jun 2002 12:20:19 -0000 Received: (qmail 8444 invoked by uid 97); 24 Jun 2002 12:20:19 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 8417 invoked by uid 97); 24 Jun 2002 12:20:19 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 8398 invoked by uid 98); 24 Jun 2002 12:20:18 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) 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_jk cache and socket timeout X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Mon, 24 Jun 2002 14:20:30 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: mod_jk cache and socket timeout Thread-Index: AcIbd4p1f540tUVgRCaEgRz8Y5cBcAAAB5wA From: "GOMEZ Henri" To: "Tomcat Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >Henri thinks we should discuss that here, so I'm forwarding=20 >the original mail. Sure that's OSS way ;) >Basically I don't like the time. The alternative is to use something >like GetTickCount(). there is no gettickcount under Unix, but you could use gettickcount on WIN32 if it's faster. >The patch uses the semi-dynamic endpoint cache. One should set the high >enough worker.cachesize, and the number of opened channels will drop >after worker.cache_timeout. Tell use more about worker.cache_timeout. >Since IMO there was the general +1 for Jan's patch, here is=20 >the original >with added endpoint timeout. time_t now =3D time(NULL); Is there faster alternative in apache ? time() is a consuming call, and I recall hack from a SGI boy to speed Apache 1.3 in avoiding use of time(), which are also in request_rec = (r->request_time) in apache 1.3 (time_t) and 2.0 (apr_time_t) >> -----Original Message----- >> From: Mladen Turk [mailto:mturk@mappingsoft.com]=20 >> Sent: 22. lipanj 2002 18:06 >> To: GOMEZ Henri >> Subject: mod_jk cache and socket timeout >>=20 >>=20 >> Hi Henri, >> =20 >> Here is the Jan Singer's socket timeout patch with added=20 >> cache timeout (since its not in the tree already). Still=20 >> don't like the time() difftime, but it'll do. >>=20 >> Added workers.cache_timeout (defaults to 15 secs). >>=20 >> With high cachesize, Apache 2.0.40-dev/TC 4.1.5 XP/WIN2K=20 >> behaves perfectly. Done the test on 4x1.6GHz PIII Xeon and=20 >it flies... >>=20 >>=20 >> Greetings, >> MT. >>=20 > -- To unsubscribe, e-mail: For additional commands, e-mail: