Skip to content

Commit 8ab3a43

Browse files
committed
set server.requestTimeout value to 0
1 parent 4d6dcb4 commit 8ab3a43

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

storage-node/src/commands/server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,11 @@ Supported values: warn, error, debug, info. Default:debug`,
350350
},
351351
x_host_id: X_HOST_ID,
352352
})
353-
app.listen(port, () => logger.info(`Listening on http://localhost:${port}`))
353+
const server = app.listen(port, () => logger.info(`Listening on http://localhost:${port}`))
354+
355+
// INFO: https://nodejs.org/dist/latest-v18.x/docs/api/http.html#serverrequesttimeout
356+
// Set the server request timeout to 0 to disable it. This was default behaviour pre Node.js 18.x
357+
server.requestTimeout = 0
354358
} catch (err) {
355359
logger.error(`Server error: ${err}`)
356360
this.exit(ExitCodes.ServerError)

0 commit comments

Comments
 (0)