问题描述
我想知道tomcat连接器的connectionTimeout和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)?
keepAliveTimeout 小于 connectionTimeout 有什么影响?
What is the effect of keepAliveTimeout being less than the connectionTimeout?
谢谢
推荐答案
connectionTimeout
定义了 Tomcat 在客户端连接后等待客户端请求的时间.
connectionTimeout
defines how long Tomcat will wait for a client request after client connected.
keepAliveTimeout
是Tomcat在关闭连接之前等待另一个请求的时间
keepAliveTimeout
is how long Tomcat will wait for another request before closing the connection
换句话说,connectionTimeout 是 Tomcat 在 TCP 连接建立后等待第一个 HTTP 请求发送的时间,keepAliveTimeout 是等待另一个请求通过同一连接发送的时间
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
这篇关于connectionTimeout和keepAliveTimeout之间的Tomcat连接器关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!