-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Alternative for setting request timeouts for in-process hosting #12330
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
Comments
Thank you @guardrex However, the server keeps processing infinitely, which left the server in an invalid state, until it is restarted. Re-producing is very easy, I created a Razor View, with a "while (true)" loop in it. |
Yes, and your experience matches what engineering said on that issue ...
Since any app can just swallow the request and we don't address that scenario anywhere in the docs as far as I know, you ask a great question. What we need to do on this issue is mark it for the Product Unit ("PU" label) so that they can tell us what they think about an alternative. Now that Preview4 is out, I think (hope) that they'll look at this soon. I'll take their guidance and enhance that remark in the topic. We should at the very least say what engineering said: The app is left to process the request without a timeout by IIS/ANCM. Note to shirhatti: I'll work this and remove the "PU" label when there's guidance available. |
Thanks, I highly appreciate your quick and detailed responses. |
This is old but interesting ... might lead to some newer info or an approach. |
Sadly it's related to ASP.NET and not ASP.NET Core. |
Kestrel is the server in that scenario, so they're discussing how it would work with Core. |
Ben has an "execution timeout" ... I'll track that down and see if it went in. |
Doesn't look like it ... https://docs.microsoft.com/dotnet/api/microsoft.aspnetcore.server.kestrel.core.kestrelserverlimits |
... and here's why ... aspnet/KestrelHttpServer#485 (comment) |
I see, not sure how to proceed from here, |
It sounds like this isn't just a nice-to-have scenario for you. You probably should ask the engineers directly for additional guidance ... https://github.com/aspnet/AspNetCore/issues If you open over there, I recommend cross-linking those two prior discussion points into your issue. It will probably refresh them as to what was said:
If you get an answer, plz do write back on this issue what you work out. We have a few options: We could (with their approval) roll their/your guidance into the topic. Alternatively, we could cross-link your engineering issue into the docs. |
Will do, thanks you @guardrex ! |
Closing. See: dotnet/aspnetcore#10079 |
Uh oh!
There was an error while loading. Please reload this page.
From @effyteva on #5449 ...
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: