According to http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/index.html , the kernel keepalive function occurs at the OS level, and doesn't require an application to explicitly call it. However I also read about how an application must call it (using SO_KEEPALIVE) to actually make use of the kernel feature.
Here > Keep-alive options not working on Linux for an outgoing connection
Could someone please clarify?
Thanks!