Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 486 Bytes

Sometimes you may want to use TCP Keepalive feature, but it is not enabled by default, programs need to specify SO_KEEPALIVE explicitly for the sockets.

This library automatically sets SO_KEEPALIVE for all connected and accepted sockets.


LD_PRELOAD=`pwd`/   nc 5678

You can tune keep-alive options in