Skip to content

Commit

Permalink
fix: remove set socket deadline avoid reconnecting due to socket time…
Browse files Browse the repository at this point in the history
…out. (#524)
  • Loading branch information
FGadvancer authored Mar 4, 2024
1 parent 93c2a9a commit 7b156fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/interaction/long_conn_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (c *LongConnMgr) readPump(ctx context.Context) {
continue
}
c.conn.SetReadLimit(maxMessageSize)
_ = c.conn.SetReadDeadline(pongWait)
//_ = c.conn.SetReadDeadline(pongWait)
messageType, message, err := c.conn.ReadMessage()
if err != nil {
//if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
Expand Down

0 comments on commit 7b156fc

Please sign in to comment.