-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Async to server library #22575
Conversation
Solves #12334 |
This at least partially solves #12334. There are more places we call Complete() outside of an async context which will likely be trickier to fix. |
@halter73 I have modified some of the others. I am not sure whether we should keep both synchronous and asynchronous methods. I found that |
src/Servers/Kestrel/Core/src/Internal/Http/ZeroContentLengthMessageBody.cs
Outdated
Show resolved
Hide resolved
@hueifeng Thanks for working on this issues. I made my last comment about there being other calls to Complete() just so we don't prematurely close #12334. I wasn't asking you to address everything. I was going to merge your PR as it was. It looks like you're on the right track though. If it gets too messy, I might just take the initial commit.
For internal interfaces and types, it's OK to get rid of the synchronous methods if they're not called. |
src/Servers/Kestrel/Core/src/Internal/Http/Http1ChunkedEncodingMessageBody.cs
Outdated
Show resolved
Hide resolved
src/Servers/Kestrel/Core/src/Internal/Http3/Http3FrameWriter.cs
Outdated
Show resolved
Hide resolved
src/Servers/Kestrel/Core/src/Internal/Http/Http1ChunkedEncodingMessageBody.cs
Outdated
Show resolved
Hide resolved
Bad rebase? |
…gMessageBody.cs Co-authored-by: Stephen Halter <halter73@gmail.com>
Co-authored-by: Stephen Halter <halter73@gmail.com>
Co-authored-by: Stephen Halter <halter73@gmail.com>
Modify some methods to be asynchronous.