fix: reset read deadline when message come

test-errcode
Gordon 2 years ago
parent f8a2721406
commit 88a2df00bd

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

Loading…
Cancel
Save