From 68b6dd40f4f353e4c648c31bcaf7be7f79657947 Mon Sep 17 00:00:00 2001 From: "lihaibin@earthonline.com" <‘lihaibin@national-space.com’> Date: Fri, 12 Jul 2024 10:28:32 +0800 Subject: [PATCH] update data info --- network/websocket.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/network/websocket.go b/network/websocket.go index 86fd4664..e5befbbe 100644 --- a/network/websocket.go +++ b/network/websocket.go @@ -16,7 +16,7 @@ import ( "strings" ) -var BytebufLen int = 10000 +var BytebufLen int64 = 10000000000 var IMsg MsgHandleClt.Msg_data type OnlineUser struct { @@ -62,6 +62,10 @@ func (this *OnlineUser) readLoop() { } select { case this.inChan <- content: + //case <-time.After(3 * time.Second): + // fmt.Println("超时----") + default: + fmt.Println("Channel is empty, unable to read data") } } }