mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Handle ECONNRESET as a temporary error
This commit is contained in:
parent
f658befb3b
commit
5c6f106b78
|
|
@ -202,6 +202,10 @@ export async function handleError(
|
|||
} else if ('code' in err && (err as any).type === 'system' && err.code === 'EAI_AGAIN') {
|
||||
debug('Request error - name resolution failed, waiting %ds before retrying', loop.update_interval, err);
|
||||
|
||||
return LoopResult.OK;
|
||||
} else if ('code' in err && (err as any).type === 'system' && err.code === 'ECONNRESET') {
|
||||
debug('Request error - connection reset, waiting %ds before retrying', loop.update_interval, err);
|
||||
|
||||
return LoopResult.OK;
|
||||
} else {
|
||||
throw err;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user