Skip to content

Commit a5251ff

Browse files
authored
Set AttemptedBytesRead in AbstractSocketByteChannel
1 parent 47f5ec7 commit a5251ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
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
{
@@ -363,4 +363,4 @@ protected bool IncompleteWrite(bool scheduleAsync, SocketChannelAsyncOperation o
363363
/// <returns>The number of bytes that were written from the buffer.</returns>
364364
protected abstract int DoWriteBytes(IByteBuffer buf);
365365
}
366-
}
366+
}

0 commit comments

Comments
 (0)