mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-08-20 01:25:31 -05:00
Retry on EAI_AGAIN/SERVFAIL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user