This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Send graceful shutdown notification via HTTP #115
Comments
This was referenced Jun 22, 2017
IISIntegration change is in. |
@shirhatti @pan-wang do we have an ETA and release plan for this change? |
I have done the prototype. Will run my private with new IISIntegration change today. ETA for code complete is this Friday.
@shirhatti<https://github.com/shirhatti> is working on the release plan.
…________________________________
From: Damian Edwards <[email protected]>
Sent: Wednesday, June 28, 2017 1:24:55 AM
To: aspnet/AspNetCoreModule
Cc: pan-wang; Mention
Subject: Re: [aspnet/AspNetCoreModule] Send graceful shutdown notification via HTTP (#115)
@shirhatti<https://github.com/shirhatti> @pan-wang<https://github.com/pan-wang> do we have an ETA and release plan for this change?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#115 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ARVK20pZevTBjT7ODfoiPykSIYOf1go0ks5sIeOngaJpZM4OC7Wh>.
|
Hi team, any update on whether this change was rolled out to Azure AppService to support graceful shutdowns? Thank you |
The change requires both a new version of ANCM and the final release of ASP.NET Core 2.0. Both are scheduled for release and azure deployment in the coming weeks. |
the change was checked in. Close the issue |
What libraries and versions specifically do I need to ensure I have this new change? |
ANCM >= 1.0.1983 |
Thank you |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RE: aspnet/Hosting#846
Today ANCM sends CTL+C to notify the child process of graceful shutdowns. This triggers shutdown events in Hosting, stops the server, drains requests, etc.. Unfortunately Azure Web Sites sandbox blocks all out-of-proc console APIs, including CTL+C. Sending the signal fails with an error and ANCM immediately terminates the child process.
Proposal:
ANCM will now send this notification via an HTTP request that will be handled by the IISMiddleware. The CTL+C will remain for back compat. We need to confirm if the debugger tooling is expecting this CTL+C.
Note 1.x sites on azure will not be fixed by this solution, only 2.x apps + a new ANCM.
Order of operations:
Request details:
POST [/BasePath]/iisintegration HTTP/1.1
MS-ASPNETCORE-EVENT: shutdown
(no body)
Expected response:
HTTP/1.1 202 Accepted
(no body)
Other notes:
ANCM already filters out an external MS-* headers.
IISMiddleware already rejects requests missing the MS-ASPNETCORE-TOKEN header.
IISMiddleware is only added to the app if ANCM environment variables are present at startup.
The text was updated successfully, but these errors were encountered: