Why TCP keepalive may be important

Executive summary TCP connections may freeze due to network troubles, spontaneous reboots or failovers. The application should be robust enough to handle it. The concept of “TCP keepalive” is one way of solving it. Linux does not come with any knobs to turn it on globally, and by default it’s turned off - but there are workarounds. “TCP keepalive” needs to be configured according to the network; one may want slightly different configuration for communication between two servers ...