mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-26 23:16:35 +08:00
修复连接快速关闭时数据可能无法完整传输的问题
This commit is contained in:
@@ -53,7 +53,7 @@ func NewClientConn(conn net.Conn, quickClose bool) net.Conn {
|
||||
tcpConn, ok := conn.(*net.TCPConn)
|
||||
if ok {
|
||||
// TODO 可以设置此值
|
||||
_ = tcpConn.SetLinger(0)
|
||||
_ = tcpConn.SetLinger(3)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user