From e2b9f97efab69c96e00bb7b379ebbd6a68fc5db7 Mon Sep 17 00:00:00 2001 From: liuxiaobo <1224730913@qq.com> Date: Sat, 31 May 2025 10:46:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=95=BF=E5=BA=A6=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ws/wsConn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ws/wsConn.go b/ws/wsConn.go index 1bd9cb5..dc1f531 100644 --- a/ws/wsConn.go +++ b/ws/wsConn.go @@ -94,7 +94,7 @@ func (c *wsConnect) close() { // 循环从websocket中读取消息放入到读队列中 func (c *wsConnect) readWsLoop() { - c.wsConn.SetReadLimit(maxMessageSize) + //c.wsConn.SetReadLimit(maxMessageSize) _ = c.wsConn.SetReadDeadline(time.Now().Add(pongWait)) for { // 读一个message