MCPcopy Create free account
hub / github.com/One-com/gone / IOActivityTimeout

Function IOActivityTimeout

netutil/reaper/conn.go:85–95  ·  view source on GitHub ↗

IOActivityTimeout lets you toggle whether IOActivityTimeout is enabled for a net.Conn. It will work even if the net.Conn is wrapped as a *tls.Conn, but to do this requires an unsafe conversion relying on the underlying net.Conn being the first member of the tls.Conn struct. This is sadly necessary s

(c net.Conn, enable bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

wrap_n_handoffMethod · 0.85

Calls 2

reaperConnFunction · 0.85
ioActivityTimeoutFunction · 0.85

Tested by

no test coverage detected