MCPcopy Create free account
hub / github.com/celzero/firestack / SetKeepAliveConfigSockOpt

Function SetKeepAliveConfigSockOpt

intra/core/sockopt.go:87–155  ·  view source on GitHub ↗

SetKeepAliveConfigSockOpt sets for a TCP connection, SO_KEEPALIVE, TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT, TCP_USER_TIMEOUT. args is optional, and should be in the order of idle, interval, count.

(c MinConn, args ...int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

maybeKeepAlive2Function · 0.92
keepaliveMethod · 0.85

Calls 5

VFunction · 0.92
EFunction · 0.92
boolintFunction · 0.85
conn2strFunction · 0.70
SyscallConnMethod · 0.65

Tested by

no test coverage detected