dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.64k stars 25.28k forks source link

Note that request timeout behavior differs in debug mode #30431

Closed tdykstra closed 1 year ago

tdykstra commented 1 year ago

Add an alert box in the article intro explaining what happens to timeout handling when you're running in debug mode.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 161880

tdykstra commented 1 year ago

@Kahbazi Is it accurate to say that timeouts are disabled when you run in debug mode? Anything else we should say about debugging timeouts?

Kahbazi commented 1 year ago

@tdykstra Yes, the middleware will be skipped if a debugger is attached. It's the same behavior as the kestrel timeout. https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/options?view=aspnetcore-7.0#behavior-with-debugger-attached

Anything else we should say about debugging timeouts?

I don't have anything else in mind.

tdykstra commented 1 year ago

@Kahbazi Thank you!