Re: Tomcat keepAliveTimeout

2006-10-05 Thread Jim Jagielski
On Sep 29, 2006, at 11:18 AM, Mladen Turk wrote: Hi, The problem is that we presume that socket timeout is keep-alive timeout, and that is wrong. The reason is simple because the time between two requests has noting to do with the the time the data will be read. FWIW, httpd separates the 2

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Remy Maucherat
Filip Hanik - Dev Lists wrote: I like the trick, it's smart, but I believe we could also achieve it with keep alive request limits, ie, when thread count gets high, turn off keep alive by mocking maxKeepAliveRequests="1" ie, this way it doesn't affect the servlet and its usage of the stream.

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Filip Hanik - Dev Lists
I like the trick, it's smart, but I believe we could also achieve it with keep alive request limits, ie, when thread count gets high, turn off keep alive by mocking maxKeepAliveRequests="1" ie, this way it doesn't affect the servlet and its usage of the stream. Filip Remy Maucherat wrote: Ml

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Mladen Turk
Remy Maucherat wrote: Mladen Turk wrote: semi useless, LOL :) "when the number of threads gets lower, it tends to use fewer threads" Ok, it's the opposite: "when the number of threads gets higher, it will try using fewer threads". Looking at the code will makes this obvious. Look. My patc

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Remy Maucherat
Mladen Turk wrote: semi useless, LOL :) "when the number of threads gets lower, it tends to use fewer threads" Ok, it's the opposite: "when the number of threads gets higher, it will try using fewer threads". Looking at the code will makes this obvious. I was talking about the soTimeout. Ac

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Mladen Turk
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

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Remy Maucherat
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

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Mladen Turk
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 tim

Re: Tomcat keepAliveTimeout

2006-09-29 Thread Filip Hanik - Dev Lists
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. on blocking io, soTimeout naturally becomes keepAliveTimeout, as when the request is complete, you go into read() again. on non blocking io