tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <hgo...@slib.fr>
Subject RE: mod_jk cache and socket timeout
Date Mon, 24 Jun 2002 12:25:10 GMT
What about also to replace difftime(x, y) by
y - x ? 

-
Henri Gomez                 ___[_]____
EMAIL : hgomez@slib.fr        (. .)                     
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-----Original Message-----
>From: GOMEZ Henri 
>Sent: Monday, June 24, 2002 2:21 PM
>To: Tomcat Developers List
>Subject: RE: mod_jk cache and socket timeout
>
>
>>Henri thinks we should discuss that here, so I'm forwarding 
>>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 
>>the original
>>with added endpoint timeout.
>
>time_t now = 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] 
>>> Sent: 22. lipanj 2002 18:06
>>> To: GOMEZ Henri
>>> Subject: mod_jk cache and socket timeout
>>> 
>>> 
>>> Hi Henri,
>>>  
>>> Here is the Jan Singer's socket timeout patch with added 
>>> cache timeout (since its not in the tree already). Still 
>>> don't like the time() difftime, but it'll do.
>>> 
>>> Added workers.cache_timeout (defaults to 15 secs).
>>> 
>>> With high cachesize, Apache 2.0.40-dev/TC 4.1.5 XP/WIN2K 
>>> behaves perfectly. Done the test on 4x1.6GHz PIII Xeon and 
>>it flies...
>>> 
>>> 
>>> Greetings,
>>> MT.
>>> 
>>
>
>--
>To unsubscribe, e-mail:   
<mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message