改进在自动读超时模式下的Websocket连接

This commit is contained in:
GoEdgeLab
2023-01-09 12:36:33 +08:00
parent 6e852a167a
commit 24bf452ea5
4 changed files with 24 additions and 3 deletions

View File

@@ -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
}