未验证 提交 9229821d 编写于 作者: Y YuhaoChen 提交者: GitHub

1.修复WChannel在接收大数据块的时候返回的数据长度不正确问题 (#207)

上级 cb950948
......@@ -205,7 +205,7 @@ namespace ET
return;
}
if (receiveResult.Count > ushort.MaxValue)
if (receiveCount > ushort.MaxValue)
{
await this.webSocket.CloseAsync(WebSocketCloseStatus.MessageTooBig, $"message too big: {receiveResult.Count}",
cancellationTokenSource.Token);
......@@ -213,7 +213,7 @@ namespace ET
return;
}
this.recvStream.SetLength(receiveResult.Count);
this.recvStream.SetLength(receiveCount);
this.OnRead(this.recvStream);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册