Difference between revisions of "Socket keep-alive timeouts"
(Created page with "{{Category |description=TCP/IP Keepalive timeouts. There are a number of tunable socket parameters that can be modified via FWCONFIG file<br/> '''tcp_keepalive_time''' - Idl...") |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | There are a number of tunable socket parameters that can be modified via FWCONFIG file<br/> | + | There are a number of tunable socket parameters that can be modified via [[FWCONFIG|FWCONFIG]] file<br/> |
− | '''tcp_keepalive_time''' - Idle Time in seconds before socket starts sending keep-alive messages.<br/> | + | '''tcp_keepalive_time''' - Connection Idle Time in seconds before socket starts sending keep-alive messages.<br/> |
− | '''tcp_keepalive_intvl''' - Time in seconds between | + | '''tcp_keepalive_intvl''' - Time in seconds between keep-alive messages.<br/> |
− | '''tcp_keepalive_probes''' - Number keep-alive messages before socket is disconnected. <br/> | + | '''tcp_keepalive_probes''' - Number of (lost) keep-alive messages before connection is considered as dropped and socket is disconnected . <br/> |
Keep-alive Timeout (secs) = tcp_keepalive_time + tcp_keepalive_intvl * tcp_keepalive_probes.<br/> | Keep-alive Timeout (secs) = tcp_keepalive_time + tcp_keepalive_intvl * tcp_keepalive_probes.<br/> | ||
'''Example:'''<br/> | '''Example:'''<br/> | ||
Line 17: | Line 15: | ||
tcp_keepalive_time, tcp_keepalive_intvl and tcp_keepalive_probes are global and will affect all TCP/IP sockets.<br/> | tcp_keepalive_time, tcp_keepalive_intvl and tcp_keepalive_probes are global and will affect all TCP/IP sockets.<br/> | ||
<br/>}} | <br/>}} | ||
− | |||
− |
Latest revision as of 10:14, 26 October 2017
There are a number of tunable socket parameters that can be modified via FWCONFIG file
tcp_keepalive_time - Connection Idle Time in seconds before socket starts sending keep-alive messages.
tcp_keepalive_intvl - Time in seconds between keep-alive messages.
tcp_keepalive_probes - Number of (lost) keep-alive messages before connection is considered as dropped and socket is disconnected .
Keep-alive Timeout (secs) = tcp_keepalive_time + tcp_keepalive_intvl * tcp_keepalive_probes.
Example:
ipaddressmask dhcp sleep 20 tcp_keepalive_time=2 tcp_keepalive_intvl=1 tcp_keepalive_probes=3
IMPORTANT | |
tcp_keepalive_time, tcp_keepalive_intvl and tcp_keepalive_probes are global and will affect all TCP/IP sockets. |