Skip to content

Commit

Permalink
[修复]1. 修复WebSocket 解析数据包异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Nov 21, 2024
1 parent 8038478 commit 9ab3c5b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ private void ReceiveCallback(byte[] buffer)
if (processSuccess)
{
var bodyLength = PacketReceiveHeaderHandler.PacketLength - PacketReceiveHeaderHandler.PacketHeaderLength;
PReceiveState.Reset(bodyLength, PacketReceiveHeaderHandler);
if (buffer.Length < bodyLength)
{
return;
Expand Down

0 comments on commit 9ab3c5b

Please sign in to comment.