mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge pull request #92 from overleaf/spd-no-fatal-epipe
Don't shut down on uncaught EPIPE
This commit is contained in:
@@ -141,6 +141,8 @@ if Settings.shutdownDrainTimeWindow?
|
||||
if Settings.errors?.catchUncaughtErrors
|
||||
process.removeAllListeners('uncaughtException')
|
||||
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'
|
||||
if Settings.errors?.shutdownOnUncaughtError
|
||||
drainAndShutdown('SIGABRT')
|
||||
|
||||
Reference in New Issue
Block a user