tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: Tomcat keepAliveTimeout
Date Fri, 29 Sep 2006 17:33:31 GMT
Remy Maucherat wrote:
> Mladen Turk wrote:
>> Filip Hanik - Dev Lists wrote:
>>> you are correct, soTimeout should not, imho, change depending on the 
>>> thread count.
>>> if the user sets 20 seconds for soTimeout then it should stay that way.
>>>
>>
>> Right. With the current code you can only deduct what the actual
>> timeout will be. Like said, for 40 sec timeout it can be
>> 40, 20, 13 or 2.
> 
> This is a (semi useless) feature so that, when the number of threads 
> gets lower, it tends to use fewer threads (for HTTP keepalive, in 
> particular). It's only for the java.io HTTP connector, which tends to 
> eat threads like candy, to prevent it from exhausting the pool too fast.
>

semi useless, LOL :)
"when the number of threads gets lower, it tends to use fewer threads"


I was talking about the soTimeout.
Actually when the number of threads gets higher the soTimeout should
get higher as well or at least be kept at the configured value.

With the current code you can not be sure what the actual timeout is.
It can be from soTimeout to soTimeout/20 without user having any clue.

--
Mladen.

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


Mime
View raw message