How to Let Requests Finish When an ASP.NET Core App Shuts Down (C#)
When an ASP.NET Core app stops, it doesn't drop the requests it's still answering straight away: it stops taking new ones and gives the rest 30 seconds. A request that needs longer is cut off, and the caller gets an error instead of an answer. Here's that happening to a 40-second request, and the one setting that lets it finish.
