Skip to content

Commit 2dc5694

Browse files
benaadamshalter73
authored andcommitted
Http1OutputProducer Reset sequentially (#9203)
1 parent 4f57a4a commit 2dc5694

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,11 @@ public void Reset()
481481
{
482482
Debug.Assert(_currentSegmentOwner == null);
483483
Debug.Assert(_completedSegments == null || _completedSegments.Count == 0);
484+
// Cleared in sequential address ascending order
485+
_currentMemoryPrefixBytes = 0;
484486
_autoChunk = false;
485-
_startCalled = false;
486487
_currentChunkMemoryUpdated = false;
487-
_currentMemoryPrefixBytes = 0;
488+
_startCalled = false;
488489
}
489490

490491
private ValueTask<FlushResult> WriteAsync(

0 commit comments

Comments
 (0)