package
0.0.0-20201014040547-b8f686262078
Repository: https://github.com/idealeak/goserver.git
Documentation: pkg.go.dev
# README
tcpkeepalive
Known Issues: Some problems with the implementation were reported, I'll try to fix them when I get a chance, or if somebody sends a PR.
Package tcpkeepalive implements additional TCP keepalive control beyond what is currently offered by the net pkg.
Only Linux >= 2.4, DragonFly, FreeBSD, NetBSD and OS X >= 10.8 are supported at this point, but patches for additional platforms are welcome.
See also: http://felixge.de/2014/08/26/tcp-keepalive-with-golang.html
License: MIT
# Functions
EnableKeepAlive enables TCP keepalive for the given conn, which must be a *tcp.TCPConn.
Enable TCP keepalive in non-blocking mode with given settings for the connection, which must be a *tcp.TCPConn.