Skip to content

requestTimeout does apply to InProcess hosting model #16870

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

Closed
empz opened this issue Feb 5, 2020 — with docs.microsoft.com · 5 comments
Closed

requestTimeout does apply to InProcess hosting model #16870

empz opened this issue Feb 5, 2020 — with docs.microsoft.com · 5 comments
Assignees
Labels
doc-provided Source - Docs.ms Docs Customer feedback via GitHub Issue support-request
Milestone

Comments

Copy link

empz commented Feb 5, 2020

I have a ASP.NET Core 2.2 web app that was timing out after 2 minutes on a long request. It's running on the default InProcess model. I've added the requestTimeout attribute to the aspnetcore element in the web.config as mentioned in the following tip and it worked.
https://microsoft.github.io/AzureTipsAndTricks/blog/tip132.html

This page says that this attribute doesn't apply to InProcess hosting model, but the facts prove that it does.


Document Details

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

@dotnet-bot dotnet-bot added ⌚ Not Triaged Source - Docs.ms Docs Customer feedback via GitHub Issue labels Feb 5, 2020
@guardrex
Copy link
Collaborator

guardrex commented Feb 5, 2020

The default hosting model for 2.2 was out-of-process unless you set it. Can you paste your project file (.csproj) in here?

Copy link
Author

empz commented Feb 5, 2020

Oh sorry, my mistake then.

So for a NET Core 3.1, with the default InProcess model, there shouldn't be a default timeout of 2 minutes?

@guardrex
Copy link
Collaborator

guardrex commented Feb 5, 2020

Yes, that's correct. The ANCM just keeps on wait'in.

@guardrex
Copy link
Collaborator

guardrex commented Feb 5, 2020

You can make your 2.2 app use in-proc ...

<PropertyGroup>
  <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
</PropertyGroup>

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2#in-process-hosting-model-1

@guardrex
Copy link
Collaborator

guardrex commented Feb 5, 2020

I think we're good here. I checked the two versions of the doc, and it seems to compose correctly for 2.2 vs. 3.0 on the hosting model default. I'll close now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-provided Source - Docs.ms Docs Customer feedback via GitHub Issue support-request
Projects
None yet
Development

No branches or pull requests

3 participants