Merge pull request #15366 from overleaf/em-real-time-keepalive-timeout

Increase the keepalive timeout on real-time

GitOrigin-RevId: 7b1cfb2da3dc0c02fb0bd1d0fa3368961faa412e
This commit is contained in:
Eric Mc Sween 2023-10-23 08:42:55 -04:00 committed by Copybot
parent 37db50b787
commit a30f34be71
2 changed files with 2 additions and 0 deletions

View file

@ -49,6 +49,7 @@ DeploymentManager.initialise()
const app = express()
const server = require('http').createServer(app)
server.keepAliveTimeout = Settings.keepAliveTimeoutMs
const io = require('socket.io').listen(server, {
logger: socketIoLogger,
})

View file

@ -166,6 +166,7 @@ const settings = {
behindProxy: process.env.BEHIND_PROXY === 'true',
trustedProxyIps: process.env.TRUSTED_PROXY_IPS,
keepAliveTimeoutMs: parseInt(process.env.KEEPALIVE_TIMEOUT_MS ?? '5000', 10),
}
// console.log settings.redis