Skip to content

Commit 83c785f

Browse files
committed
-fix 修复处理分包粘包时可能出现数据错误
1 parent 03892e6 commit 83c785f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Network.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ internal bool Input(byte[] bytes, int offset, ref int length)
218218
int len = length;
219219
while (len > 0)
220220
{
221-
int l = PreTest(buffer, bytes, offset, length);
221+
int l = PreTest(buffer, bytes, offset, len);
222222
offset += l;
223223
len -= l;
224224
if (Test(buffer))

0 commit comments

Comments
 (0)