mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
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:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user