Fix expect 100 continue logic in Kestrel to avoid doing sync over async #31225
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
bug
This issue describes a behavior which is not expected - a bug.
feature-kestrel
help wanted
Up for grabs. We would accept a PR to help resolve this issue
Milestone
Describe the bug
Though this doesn't cause any problems in practice (we believe), there's a code cleanup that needs to happen around expect 100 continue handling in Kestrel. The code paths ProduceContinue are called from are all asynchronous, yet the method is synchronous and does sync over async. Lets fix that finally.
Here's the code
aspnetcore/src/Servers/Kestrel/Core/src/Internal/Http/HttpProtocol.cs
Line 909 in 333134c
The text was updated successfully, but these errors were encountered: