From a12373fd756ac0247c8125d3e108b63dcbb52d5a Mon Sep 17 00:00:00 2001 From: "lihaibin@earthonline.com" <‘lihaibin@national-space.com’> Date: Fri, 12 Jul 2024 13:26:54 +0800 Subject: [PATCH] update data info --- network/websocket.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/websocket.go b/network/websocket.go index 043285ec..51e6be42 100644 --- a/network/websocket.go +++ b/network/websocket.go @@ -54,7 +54,7 @@ func (this *OnlineUser) readLoop() { if err == io.EOF || err == io.ErrClosedPipe || content == "" || err == io.ErrNoProgress { IMsg.CloseEOF(this.Connection) glog.Info("协程的数量 :", runtime.NumGoroutine()) - this.Connection.Close() + //this.Connection.Close() runtime.Goexit() return } @@ -65,7 +65,7 @@ func (this *OnlineUser) readLoop() { case <-time.After(30 * time.Second): glog.Info("readLoop:超时----") glog.Info("协程的数量 :", runtime.NumGoroutine()) - this.Connection.Close() + //this.Connection.Close() runtime.Goexit() return //default: @@ -93,7 +93,7 @@ func (this *OnlineUser) handleLoop() { case <-time.After(200 * time.Second): glog.Info("handleLoop:超时----") glog.Info("协程的数量 :", runtime.NumGoroutine()) - this.Connection.Close() + //this.Connection.Close() runtime.Goexit() return }