mirror of
https://github.com/donl/slouch.git
synced 2026-06-04 22:07:25 -06:00
fix(enhanced-request): reconnect for EAI_AGAIN
This commit is contained in:
parent
519b814134
commit
81513040cf
1 changed files with 2 additions and 1 deletions
|
|
@ -178,7 +178,8 @@ EnhancedRequest.prototype._shouldReconnect = function (err) {
|
|||
'internal_server_error',
|
||||
'Failed to fetch', // ECONNREFUSED/ENOTFOUND in Chrome
|
||||
'Type error', // ECONNREFUSED/ENOTFOUND in Safari
|
||||
'XHR error' // ECONNREFUSED/ENOTFOUND in Firefox
|
||||
'XHR error', // ECONNREFUSED/ENOTFOUND in Firefox
|
||||
'EAI_AGAIN' // Transient DNS error
|
||||
].join('|'), 'i').test(err.message);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue