From 02e49a9554e9b434be659840635f174a30869d6b Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sat, 15 Oct 2022 21:57:14 +0100 Subject: [PATCH] Retry on EAI_AGAIN/SERVFAIL --- src/common/notify.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/notify.ts b/src/common/notify.ts index 9b15929..7ddf712 100644 --- a/src/common/notify.ts +++ b/src/common/notify.ts @@ -186,6 +186,10 @@ export class ZncNotifications extends Loop { } else if ('code' in err && (err as any).type === 'system' && err.code === 'ENOTFOUND') { debug('Request error, waiting %ds before retrying', this.update_interval, err); + return LoopResult.OK; + } else if ('code' in err && (err as any).type === 'system' && err.code === 'EAI_AGAIN') { + debug('Request error - name resolution failed, waiting %ds before retrying', this.update_interval, err); + return LoopResult.OK; } else { throw err;