addons: timeout fix

the default value of server.requestTimeout changed to 5mins from 0 in node 18!
This commit is contained in:
Girish Ramakrishnan
2023-04-03 23:45:28 +02:00
parent cc811522e0
commit ab19e58c6d
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -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) {