-
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
Handle IIS OnCompleted callbacks later #17756
Conversation
Can't you write a regression test that verifies that the client now gets a complete response despite an OnCompleted callback that blocks indefinitely? The bug was that the was an observable side-effect on the client. |
Added. I was worried that would prevent the server from shutting down, but it doesn't. |
#17268 IIS doesn't unblock the end of a response until PostCompletion is called. I've refactored here so that PostCompletion gets called after all things that modify the response but before the OnCompleted callbacks get fired.
I couldn't see how to write an automated test for this since OnCompleted is intentionally not supposed to have observable side-effects on the client.