mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-28 08:26:35 +08:00
优化SSE处理/优化超时设置
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/firewalls"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/iplibrary"
|
||||
"net"
|
||||
"time"
|
||||
)
|
||||
|
||||
type BaseClientConn struct {
|
||||
@@ -146,6 +147,8 @@ func (this *BaseClientConn) SetLinger(seconds int) error {
|
||||
|
||||
func (this *BaseClientConn) SetIsPersistent(isPersistent bool) {
|
||||
this.isPersistent = isPersistent
|
||||
|
||||
_ = this.rawConn.SetDeadline(time.Time{})
|
||||
}
|
||||
|
||||
// SetFingerprint 设置指纹信息
|
||||
|
||||
Reference in New Issue
Block a user