mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-29 01:06:35 +08:00
改进在自动读超时模式下的Websocket连接
This commit is contained in:
@@ -16,6 +16,8 @@ type BaseClientConn struct {
|
||||
remoteAddr string
|
||||
hasLimit bool
|
||||
|
||||
isWebsocket bool
|
||||
|
||||
isClosed bool
|
||||
|
||||
rawIP string
|
||||
@@ -122,3 +124,7 @@ func (this *BaseClientConn) SetLinger(seconds int) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *BaseClientConn) SetIsWebsocket(isWebsocket bool) {
|
||||
this.isWebsocket = isWebsocket
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user