mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #14022 from overleaf/bg-investigate-kubernetes-shutdown-keep-alive-requests
close keepalive connections on docupdater shutdown GitOrigin-RevId: 4fd0bbaa2362a1116c11dae9a8b44f02b05b14a6
This commit is contained in:
parent
48ee03bcb3
commit
0bdc82c948
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ app.use((req, res, next) => {
|
|||
{ req, timeSinceShutdown: Date.now() - Settings.shutDownTime },
|
||||
'request received after shutting down'
|
||||
)
|
||||
// We don't want keep-alive connections to be kept open when the server is shutting down.
|
||||
res.set('Connection', 'close')
|
||||
}
|
||||
next()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue