We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70e8ee1 commit a10c9d9Copy full SHA for a10c9d9
src/Servers/Kestrel/Core/src/Internal/Http/Http1ContentLengthMessageBody.cs
@@ -132,7 +132,8 @@ public override bool TryReadInternal(out ReadResult readResult)
132
KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout);
133
}
134
135
- Debug.Assert(TryStartAsync().IsCompleted);
+ Task startTask = TryStartAsync();
136
+ Debug.Assert(startTask.IsCompleted);
137
138
// The while(true) because we don't want to return a canceled ReadResult if the user themselves didn't cancel it.
139
while (true)
0 commit comments