fix(timouts): Adjusting network timeout settings

This commit is contained in:
Chris Troutner
2026-03-12 12:45:33 -07:00
parent 8b2cf64f1b
commit f36cd2a8aa
5 changed files with 22 additions and 12 deletions
+5
View File
@@ -246,6 +246,11 @@ class Server {
wlogger.info(`Server started on port ${this.config.port}`)
})
// Explicit timeout settings reduce stale keep-alive socket reuse races.
this.server.keepAliveTimeout = this.config.serverKeepAliveTimeoutMs
this.server.headersTimeout = this.config.serverHeadersTimeoutMs
this.server.requestTimeout = this.config.serverRequestTimeoutMs
this.server.on('error', (err) => {
console.error('Server error:', err)
wlogger.error('Server error:', err)