mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 14:13:38 -05:00
Don't shut down on uncaught EPIPE
This commit is contained in:
parent
d12e056f08
commit
fbff3fe727
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,8 @@ if Settings.shutdownDrainTimeWindow?
|
||||||
if Settings.errors?.catchUncaughtErrors
|
if Settings.errors?.catchUncaughtErrors
|
||||||
process.removeAllListeners('uncaughtException')
|
process.removeAllListeners('uncaughtException')
|
||||||
process.on 'uncaughtException', (error) ->
|
process.on 'uncaughtException', (error) ->
|
||||||
|
if error.code == 'EPIPE'
|
||||||
|
return logger.warn err: error, 'attempted to write to disconnected client'
|
||||||
logger.error err: error, 'uncaught exception'
|
logger.error err: error, 'uncaught exception'
|
||||||
if Settings.errors?.shutdownOnUncaughtError
|
if Settings.errors?.shutdownOnUncaughtError
|
||||||
drainAndShutdown('SIGABRT')
|
drainAndShutdown('SIGABRT')
|
||||||
|
|
Loading…
Reference in a new issue