Gracefully Shutdown ASP.NET Core Web Host #68670
Unanswered
TonyValenti
asked this question in
Q&A
Replies: 1 comment
-
You could figure out whether ASP.NET or Kestrel provided a state that no longer accept new HTTP requests. If such technique is deployed in production environment, I can see DoS attack by sending an incomplete request or not reading response. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to gracefully shutdown an ASP.NET core Web Host so that active requests are serviced and the proper content is returned to the client?
I am doing some tests and it seems like calling
IHostApplicationLifetime.StopApplication()
results in some clients gettingThe response ended prematurely
. What I'd like to make sure of is that any HTTP connections are fully serviced and receive proper responses (not even 500 errors).Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions