Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If any mobile user has been configured with the keep-alive option on, then we strongly suggest you to set the keep-alive Frequency to 180 seconds (i.e. 3 minutes) at least in order to save battery life.

 

2.4.6 TCP keep alive

Linux has built-in support for keepalive. You need to enable TCP/IP networking in order to use it. You also need procfs support and sysctl support to be able to configure the kernel parameters at runtime.

Subtitle
Prefixfigure
SubtitleTextTCP Keep Alive
AnchorNameTCP_keepalive

 

The procedures involving keepalive use three user-driven variables:

Remember that keepalive support, even if configured in the kernel, is not the default behavior in Linux. Programs must request keepalive control for their sockets using the setsockopt interface. There are relatively few programs implementing keepalive, but you can easily add keepalive support for most of them following the instructions explained later in this document.

Navbar