mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-12 21:18:03 +08:00
fix: websocket data losing
This commit is contained in:
parent
ba3c44a169
commit
664b134015
@ -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
|
// websocketConn can't correct handle ReadDeadline
|
||||||
// so call N.NewDeadlineConn to add a safe wrapper
|
// so call N.NewDeadlineConn to add a safe wrapper
|
||||||
return N.NewDeadlineConn(conn), nil
|
return N.NewDeadlineConn(conn), nil
|
||||||
|
Loading…
Reference in New Issue
Block a user