java – Meaning of connectionTimeout in tomcat

java – Meaning of connectionTimeout in tomcat

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

n

n

connectionTimeout

n

The number of milliseconds this Connector will wait, after accepting an connection, for the request URI line to be presented. Use a value ofn -1 to indicate no (i.e. infinite) timeout. The default value is 60000 (i.e. 60 seconds) but note that the standard server.xml that shipsn with Tomcat sets this to 20000 (i.e. 20 seconds). Unlessn disableUploadTimeout is set to false, this timeout will also be usedn when reading the request body (if any).

n

This parameter is there specifically to fight one type of Denial-Of-Service attack,nwhereby some malicious client(s) create a TCP connection to the server (which has the effect of reserving some resources on the server for handling this connection), and then just sit there without sending any HTTP request on that connection.nBy making this delay shorter, you shorten the time during which the server resources arenallocated, to serve a request that will never come.

java – Meaning of connectionTimeout in tomcat

Leave a Reply

Your email address will not be published.