diff --git a/services/real-time/app.js b/services/real-time/app.js index c41743e597..fa6c5f7563 100644 --- a/services/real-time/app.js +++ b/services/real-time/app.js @@ -181,7 +181,11 @@ if (Settings.shutdownDrainTimeWindow) { if (Settings.errors && Settings.errors.catchUncaughtErrors) { process.removeAllListeners('uncaughtException') process.on('uncaughtException', function (error) { - if (['EPIPE', 'ECONNRESET'].includes(error.code)) { + if ( + ['ETIMEDOUT', 'EHOSTUNREACH', 'EPIPE', 'ECONNRESET'].includes( + error.code + ) + ) { Metrics.inc('disconnected_write', 1, { status: error.code }) return logger.warn( { err: error },