Bug 38485

Summary: connectionTimeout parameter ignored on HTTP Connector
Product: Tomcat 5 Reporter: George Sexton <gsexton>
Component: Connector:HTTPAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal CC: c1vamsi1c
Priority: P2    
Version: 5.5.14   
Target Milestone: ---   
Hardware: Other   
OS: Linux   

Description George Sexton 2006-02-01 23:16:11 UTC
The HTTP Connector on 5.5.15 appears to ignore the connectionTimeout parameter.
Connection s timeout after 60 seconds, regardless of the configured setting.
Here's a sample configurtion:

<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8080" connectionTimeout="10000" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps">
<Valve className="org.apache.catalina.valves.AccessLogValve"
     prefix="localhost_access_log." suffix=".txt"
     pattern="common"/>
<Logger className="org.apache.catalina.logger.FileLogger"
        directory="logs"  prefix="localhost_log." suffix=".txt"
        timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>

Running that configuration on a WinXP machine with JDK 1.5.0_06.

If I telnet to the machine, on the connector port, it times out after one minute.


gsexton@reddwarf> time telnet emp00 8080
Trying 192.168.0.254...
Connected to emp00.
Escape character is '^]'.
Connection closed by foreign host.

real    1m0.568s
user    0m0.016s
sys     0m0.008s


I noticed this because I was looking at the manager application on my server,
and I noticed it was taking KeepAlive (State K) threads 60 seconds to revert to
Ready (R).
Comment 1 Remy Maucherat 2006-09-03 13:55:08 UTC
*** Bug 40401 has been marked as a duplicate of this bug. ***