I was wondering if anyone could tell me what the default HTTP request timeout is when using express.
What I mean by this is: after how many seconds of dealing with a http request will the Express / Node.js server close the connection, when the browser nor server closed the connection manually?
How do I alter this timeout for a single route? I would like to set it to about 15 minutes for a special audio conversion route.
Thanks a lot.
Tom
The default request timeout in Node v0.9+ is 2 minutes. That is what express uses.
You can increase it for a single route using:
req.connection.setTimeout(ms);
appears to set the request timeout for a HTTP server in Node.js.req.connection.setTimeout(ms);
might be a bad idea since multiple requests can be sent over the same socket.Try connect-timeout or use this: