mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
37db50b787
commit
a30f34be71
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue