java - Meaning of connectionTimeout in tomcat -
what parameter mean tomcat. declared in server.xml
follows:
<connector connectiontimeout="20000" port="8080" protocol="http/1.1" redirectport="8443"/>
so, tried change
<connector connectiontimeout="2" port="8080" protocol="http/1.1" redirectport="8443"/>
and didn't notice effect. expected each page load takes more 2 milliseconds produce 504 - connection timeout error. didn't. i'm using eclipse , modify file through it.
taken here: https://tomcat.apache.org/tomcat-7.0-doc/config/http.html
connectiontimeout
the number of milliseconds connector wait, after accepting connection, request uri line presented. use value of -1 indicate no (i.e. infinite) timeout. default value 60000 (i.e. 60 seconds) note standard server.xml ships tomcat sets 20000 (i.e. 20 seconds). unless disableuploadtimeout set false, timeout used when reading request body (if any).
Comments
Post a Comment