mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-10 04:20:27 +08:00
优化代码
This commit is contained in:
@@ -119,7 +119,7 @@ func (this *ClientConn) Read(b []byte) (n int, err error) {
|
|||||||
|
|
||||||
// 关闭连接
|
// 关闭连接
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
_ = this.rawConn.Close()
|
_ = this.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
@@ -167,7 +167,7 @@ func (this *ClientConn) Write(b []byte) (n int, err error) {
|
|||||||
_ = conn.SetLinger(0)
|
_ = conn.SetLinger(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = this.rawConn.Close()
|
_ = this.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user