Skip to content

Commit

Permalink
Set AttemptedBytesRead in AbstractSocketByteChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
yyjdelete committed Feb 18, 2020
1 parent 47f5ec7 commit 62bcb60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public override void FinishRead(SocketChannelAsyncOperation operation)
do
{
byteBuf = allocHandle.Allocate(allocator);
//int writable = byteBuf.WritableBytes;
allocHandle.AttemptedBytesRead = byteBuf.WritableBytes;
allocHandle.LastBytesRead = ch.DoReadBytes(byteBuf);
if (allocHandle.LastBytesRead <= 0)
{
Expand Down

0 comments on commit 62bcb60

Please sign in to comment.