Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat connector relationship between connectionTimeout and keepAliveTimeout

I would like to know what the relationship between the connectionTimeout and keepAliveTimeout properties of the tomcat connectors is. Should they be set to the same value (as it's the default)?

What is the effect of keepAliveTimeout being less than the connectionTimeout?

Thanks

like image 347
Radi Radichev Avatar asked Apr 28 '15 17:04

Radi Radichev


1 Answers

connectionTimeout defines how long Tomcat will wait for a client request after client connected.

keepAliveTimeout is how long Tomcat will wait for another request before closing the connection

In other words, connectionTimeout is how long Tomcat will wait for the first HTTP request to be sent after TCP connection was established, keepAliveTimeout is how long it will wait for another request to be sent over the same connection

like image 165
Evgeniy Dorofeev Avatar answered Nov 15 '22 00:11

Evgeniy Dorofeev