- 论坛徽章:
- 0
|
tcp_keepalive_time
The tcp_keepalive_time variable tells the TCP/IP stack how often to send TCP keepalive packets to keep an connection alive if it is currently unused. This value is only used when keepalive is enabled.
The tcp_keepalive_time variable takes an integer value which is counted in seconds. The default value is 7200 seconds, or 2 hours. This should be a good value for most hosts and will not take too much network resources from you. Do not set this value to low since it will then use up your network resources with unnecessary traffic.
这个值是tcp连接在发出保活探测之前的等待时间,默认为2小时。实际生产环境中,因为NAT网关上面的会话信息只保持几分钟,如果服务器长时间没有响应就会被断开会话。为了防止这种情况发生,准备把这个值设置为2分钟或者更短。不知道这个值设置短了之后会有什么影响,查看了许多资料,都没有描述。
请各位指点。 |
|