I am updating the default entry in the conf/server.xml in Tomcat 9 to timeout on a request after 1 second, but am not seeing the effects of this change in the browser.
I am expecting to see a 500 Internal Server Error in the F12 Developer Tools Network Tab, but the status is coming back as 200 on the requests that take over 1 second.
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="1000"
redirectPort="8443" />
I have checked that the server.xml is being read by setting connectionTimeout
to a
(an invalid value) and see a warning regarding this setting in the logs. Furthermore, I am making sure the desired server.xml is used by issuing the command catalina.bat start -config \conf\server.xml
.
- Do I have the right attribute(connectionTimeout) for setting the timeout for a request?
- Is there something else I need to set?
- Is there a way for me to check to see if connectionTimeout is set correctly on the running Tomcat instance?
Please let me know.