fix: websocket data losing

This commit is contained in:
wwqgtxx 2025-04-16 13:02:50 +08:00
parent ba3c44a169
commit 664b134015

View file

@ -467,7 +467,7 @@ func streamWebsocketConn(ctx context.Context, conn net.Conn, c *WebsocketConfig,
}
}
conn = newWebsocketConn(conn, ws.StateClientSide)
conn = newWebsocketConn(bufferedConn, ws.StateClientSide)
// websocketConn can't correct handle ReadDeadline
// so call N.NewDeadlineConn to add a safe wrapper
return N.NewDeadlineConn(conn), nil