tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaas-van-der Ploeg" <>
Subject tomcat http11 connector: setTimeout in seconds
Date Tue, 04 Nov 2003 09:07:10 GMT
(I posted this on tomcat-user, without response)

<short> timeouts) {
        timeout = timeouts * 1000;
        setAttribute("timeout", ""+timeouts);

I think this is not correct. According to the documentation, the timeout 
can be configured in milliseconds. So, the result of setting the timeout 
to 20000 would be a timeout for 20.000.000 milliseconds. 

My proposed fixed would be: timeouts) {
        timeout = timeouts;
        setAttribute("timeout", ""+timeouts);

We're using Tomcat 4.1.12 on blackdown 1.4.1-beta.
I'm currently investigating a problem which happens to be that a 
pocketpc2002 connects to tomcat, and sometimes this causes the tomcat http 
connector to wait on the method in 
InternalInputBuffer.fill(). While investigating, we firstly wanted to 
identify the problem before upgrading to a higher (and stable) jvm 
While debugging the http connector code, I came across a problem which is 
shortly described above.

I'm wondering, could this sympthom be caused by the 
timeout being set to 20.000.000 milliseconds??

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message