Retry on EAI_AGAIN/SERVFAIL

This commit is contained in:
Samuel Elliott
2022-10-15 21:57:14 +01:00
parent bc8e2ae2ac
commit 02e49a9554

View File

@@ -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;