We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec739d commit cbf8d68Copy full SHA for cbf8d68
src/Servers/Kestrel/Core/src/Internal/Http/Http1OutputProducer.cs
@@ -538,7 +538,7 @@ private Memory<byte> GetChunkedMemory(int sizeHint)
538
}
539
540
var memoryMaxLength = _currentChunkMemory.Length - BeginChunkLengthMax - EndChunkLength;
541
- if (_advancedBytesForChunk >= memoryMaxLength - Math.Min(MemorySizeThreshold, sizeHint))
+ if (_advancedBytesForChunk >= memoryMaxLength - sizeHint)
542
{
543
// Chunk is completely written, commit it to the pipe so GetMemory will return a new chunk of memory.
544
var writer = new BufferWriter<PipeWriter>(_pipeWriter);
0 commit comments