Skip to content

Commit 70e8ee1

Browse files
committed
Feedback
1 parent 8d8a146 commit 70e8ee1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ private async Task PumpAsync()
101101

102102
if (!awaitable.IsCompleted)
103103
{
104-
ValueTask<FlushResult> continueTask = TryProduceContinueAsync();
105-
await continueTask;
104+
await TryProduceContinueAsync();
106105
}
107106

108107
while (true)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public override bool TryReadInternal(out ReadResult readResult)
132132
KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout);
133133
}
134134

135-
TryStartAsync();
135+
Debug.Assert(TryStartAsync().IsCompleted);
136136

137137
// The while(true) because we don't want to return a canceled ReadResult if the user themselves didn't cancel it.
138138
while (true)

0 commit comments

Comments
 (0)