ConnectionTimeout value in tomcat

What does this option mean for tomcat. The following was declared in server.xml :

  <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> 

So, I tried to change it

  <Connector connectionTimeout="2" port="8080" protocol="HTTP/1.1" redirectPort="8443"/> 

and did not notice any effect. I expected that every page on which loading of more than 2 milliseconds is loaded will result in a 504 timeout error. But that is not the case. I use eclipse and modify this file through it.

+8
source share
1 answer

Taken from here: https://tomcat.apache.org/tomcat-7.0-doc/config/http.html

connectionTimeout

The number of milliseconds that this Connector will wait after accepting the connection so that the request URI string is presented. Use a value of -1 to indicate no (i.e., infinite) timeout. The default value is 60,000 (i.e. 60 seconds), but note that the standard server.xml that comes with Tomcat sets it to 20,000 (i.e. 20 seconds). If disableUploadTimeout is not set to false, this timeout will also be used when reading the request body (if any).

+8
source

All Articles