iisnode icon indicating copy to clipboard operation
iisnode copied to clipboard

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

Open prateekbansalnitk opened this issue 9 years ago • 7 comments

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.

prateekbansalnitk avatar Jan 27 '17 18:01 prateekbansalnitk

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.

MystK avatar Apr 18 '17 21:04 MystK

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 }

amt-kw avatar Mar 17 '18 14:03 amt-kw

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

tony-gutierrez avatar May 07 '19 17:05 tony-gutierrez

I don’t know that but I can try it out and let you know.

amt-kw avatar May 07 '19 18:05 amt-kw

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

tony-gutierrez avatar May 07 '19 18:05 tony-gutierrez

Excellent! Good luck. I am sure it will automagically work.

amt-kw avatar May 07 '19 18:05 amt-kw

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

sahilfullstack avatar Jun 19 '20 10:06 sahilfullstack