Skip to content

Commit cbf8d68

Browse files
committed
whoops
1 parent 0ec739d commit cbf8d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Servers/Kestrel/Core/src/Internal/Http/Http1OutputProducer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ private Memory<byte> GetChunkedMemory(int sizeHint)
538538
}
539539

540540
var memoryMaxLength = _currentChunkMemory.Length - BeginChunkLengthMax - EndChunkLength;
541-
if (_advancedBytesForChunk >= memoryMaxLength - Math.Min(MemorySizeThreshold, sizeHint))
541+
if (_advancedBytesForChunk >= memoryMaxLength - sizeHint)
542542
{
543543
// Chunk is completely written, commit it to the pipe so GetMemory will return a new chunk of memory.
544544
var writer = new BufferWriter<PipeWriter>(_pipeWriter);

0 commit comments

Comments
 (0)