addons: timeout fix
the default value of server.requestTimeout changed to 5mins from 0 in node 18!
This commit is contained in:
@@ -381,6 +381,7 @@ async function initializeExpressSync() {
|
||||
// disable server socket "idle" timeout. we use the timeout middleware to handle timeouts on a route level
|
||||
// we rely on nginx for timeouts on the TCP level (see client_header_timeout)
|
||||
httpServer.setTimeout(0);
|
||||
httpServer.requestTimeout = 1000 * 60 * 60; // this value changed in node 18 to 5 mins
|
||||
|
||||
// upgrade handler
|
||||
httpServer.on('upgrade', function (req, socket, head) {
|
||||
|
||||
Reference in New Issue
Block a user