mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[app] ignore error from writing to disconnected long-polling client
This commit is contained in:
parent
a2f5bf463e
commit
cc681a94f4
1 changed files with 7 additions and 3 deletions
|
@ -220,9 +220,13 @@ if (Settings.shutdownDrainTimeWindow) {
|
|||
process.removeAllListeners('uncaughtException')
|
||||
process.on('uncaughtException', function (error) {
|
||||
if (
|
||||
['ETIMEDOUT', 'EHOSTUNREACH', 'EPIPE', 'ECONNRESET'].includes(
|
||||
error.code
|
||||
)
|
||||
[
|
||||
'ETIMEDOUT',
|
||||
'EHOSTUNREACH',
|
||||
'EPIPE',
|
||||
'ECONNRESET',
|
||||
'ERR_STREAM_WRITE_AFTER_END'
|
||||
].includes(error.code)
|
||||
) {
|
||||
Metrics.inc('disconnected_write', 1, { status: error.code })
|
||||
return logger.warn(
|
||||
|
|
Loading…
Reference in a new issue