Skip to content

Commit

Permalink
Skip reading full buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 21, 2025
1 parent ed58c5e commit 3841818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotNext.IO/IO/PoolingBufferedStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ private int ReadCore(Span<byte> data)
if (readPosition == readLength)
Reset();
}
else if (data.Length > maxBufferSize)
else if (data.Length >= maxBufferSize)
{
Debug.Assert(readPosition == readLength);

Expand Down

0 comments on commit 3841818

Please sign in to comment.