10.9 Configure connectionTimeout

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

The connectionTimeout setting allows Tomcat to close idle sockets after a specific amount of time to save system resources.

Rationale:

Closing idle sockets reduces system resource usage which can provide better performance and help protect against Denial of Service attacks.

Solution

Set the connectionTimeout for each connector in $CATALINA_HOME/conf/server.xml ensure to the optimal number of milliseconds based on hardware resources, load, and number of concurrent connections.

connectionTimeout='60000'

Impact:

This timeout will also apply when reading any request body when disableUploadTimeout is not set to false.

Default Value:

By default this is set to 60000 (i.e. 60 seconds).

References:

https://tomcat.apache.org/tomcat-9.0-doc/config/http.html

See Also

https://workbench.cisecurity.org/files/2509

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-12, CSCv7|5.1

Plugin: Unix

Control ID: 4c6c9302abcfc4b91b7716426e371946f4885a3a930d904ddbd10a81d0f6c5dc