Unable to increase the node server timeout beyond 2 minute mark when using IISNode
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.
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.
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 Do you know if setting req.setTimeout on an individual request also works?
I don’t know that but I can try it out and let you know.
Verfied that it works > 2 min as far as express is concerned. Now to try on azure app service.
Excellent! Good luck. I am sure it will automagically work.
@prateekbansalnitk @amt-kw @tony-gutierrez @MystK I am facing the same issue, can you please guide me for the solution.