diff --git a/internal/nodes/client_conn.go b/internal/nodes/client_conn.go index 416b905..88a844c 100644 --- a/internal/nodes/client_conn.go +++ b/internal/nodes/client_conn.go @@ -129,11 +129,6 @@ func (this *ClientConn) Read(b []byte) (n int, err error) { // 检测是否为超时错误 var isTimeout = err != nil && os.IsTimeout(err) var isHandshakeError = isTimeout && !this.hasRead - if isTimeout { - _ = this.SetLinger(0) - } else { - _ = this.SetLinger(nodeconfigs.DefaultTCPLinger) - } // 忽略白名单和局域网 if !this.isPersistent && this.isHTTP && !this.isInAllowList && !utils.IsLocalIP(this.RawIP()) {