Skip to content

Commit 62bcb60

Browse files
committed
Set AttemptedBytesRead in AbstractSocketByteChannel
1 parent 47f5ec7 commit 62bcb60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DotNetty.Transport/Channels/Sockets/AbstractSocketByteChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public override void FinishRead(SocketChannelAsyncOperation operation)
103103
do
104104
{
105105
byteBuf = allocHandle.Allocate(allocator);
106-
//int writable = byteBuf.WritableBytes;
106+
allocHandle.AttemptedBytesRead = byteBuf.WritableBytes;
107107
allocHandle.LastBytesRead = ch.DoReadBytes(byteBuf);
108108
if (allocHandle.LastBytesRead <= 0)
109109
{

0 commit comments

Comments
 (0)