MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / SetLinger

Method SetLinger

internal/nodes/client_conn_base.go:164–170  ·  view source on GitHub ↗

SetLinger 设置Linger

(seconds int)

Source from the content-addressed store, hash-verified

162
163// SetLinger 设置Linger
164func (this *BaseClientConn) SetLinger(seconds int) error {
165 tcpConn, ok := this.TCPConn()
166 if ok {
167 return tcpConn.SetLinger(seconds)
168 }
169 return nil
170}
171
172func (this *BaseClientConn) SetIsPersistent(isPersistent bool) {
173 this.isPersistent = isPersistent

Callers

nothing calls this directly

Calls 2

TCPConnMethod · 0.95
SetLingerMethod · 0.65

Tested by

no test coverage detected