Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
func EnableKeepAlive ¶
EnableKeepAlive enables TCP alive for the given conn, which must be a *tcp.TCPConn. The returned Conn allows overwriting the default alive parameters used by the operating system.
func (*Conn) SetKeepAliveCount ¶
SetKeepAliveCount sets the maximum number of alive probes TCP should send before dropping the connection.
func (*Conn) SetKeepAliveIdle ¶
SetKeepAliveIdle sets the time (in seconds) the connection needs to remain idle before TCP starts sending alive probes.
Click to show internal directories.
Click to hide internal directories.