mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-02-26 09:05:43 +08:00
写数据超时时断开同客户端连接
This commit is contained in:
@@ -150,6 +150,8 @@ func (this *ClientConn) Write(b []byte) (n int, err error) {
|
||||
if ok {
|
||||
_ = conn.SetLinger(0)
|
||||
}
|
||||
|
||||
_ = this.rawConn.Close()
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user