Skip to content
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

Unable to increase the node server timeout beyond 2 minute mark when using IISNode #558

Open
prateekbansalnitk opened this issue Jan 27, 2017 · 7 comments

Comments

@prateekbansalnitk
Copy link

I am trying to set the node http request timeout greater than 2 minutes but it is not working with IISNode.
Working fine when I do not use IISNode in the setup.

@MystK
Copy link

MystK commented Apr 18, 2017

I am having the same issue. When a call greater than two minutes is made, iisnode returns a HTTP 500. I have time it multiple times and it times out exactly at 2 minutes.

@amt-kw
Copy link

amt-kw commented Mar 17, 2018

The following seemed to work while using express

var service = express();
if (process.env.IISNODE_VERSION) {
var server = service.listen(service.get("port"));
server.timeout = 600000; --timeout in milliseconds
}

@tony-gutierrez
Copy link

tony-gutierrez commented May 7, 2019

@amt-kw Do you know if setting req.setTimeout on an individual request also works?

@amt-kw
Copy link

amt-kw commented May 7, 2019 via email

@tony-gutierrez
Copy link

Verfied that it works > 2 min as far as express is concerned. Now to try on azure app service.

@amt-kw
Copy link

amt-kw commented May 7, 2019 via email

@sahilfullstack
Copy link

@prateekbansalnitk @amt-kw @tony-gutierrez @MystK I am facing the same issue, can you please guide me for the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants