From 88a2df00bd3b380d2b225f692adc0fef5a939b9c Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 10 May 2023 10:40:12 +0800 Subject: [PATCH] fix: reset read deadline when message come --- internal/msggateway/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/msggateway/client.go b/internal/msggateway/client.go index bf0966283..512528352 100644 --- a/internal/msggateway/client.go +++ b/internal/msggateway/client.go @@ -105,6 +105,7 @@ func (c *Client) readMessage() { } switch messageType { case MessageBinary: + _ = c.conn.SetReadDeadline(pongWait) parseDataErr := c.handleMessage(message) if parseDataErr != nil { c.closedErr = parseDataErr