From 4b7752e565433494b92ae4cb65460e4ce1eb7fb7 Mon Sep 17 00:00:00 2001 From: jk Date: Mon, 1 Aug 2016 16:33:00 -0500 Subject: [PATCH] Add 'EAI_AGAIN' as a default retry error code The reason for adding this is it is frequently seen when sending a multitude of requests in parallel. --- lib/common/filters/retrypolicyfilter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/filters/retrypolicyfilter.js b/lib/common/filters/retrypolicyfilter.js index cd600a7..50956a5 100644 --- a/lib/common/filters/retrypolicyfilter.js +++ b/lib/common/filters/retrypolicyfilter.js @@ -130,7 +130,7 @@ RetryPolicyFilter._handle = function (self, requestOptions, next) { // we should NOT retry within the SDK as the stream data is not valid anymore if we retry directly. if (!returnObject.outputStreamSent && returnObject.error && azureutil.objectIsNull(returnObject.retryable) && ((!azureutil.objectIsNull(returnObject.response) && retryInfo.retryable) || - (returnObject.error.code === 'ETIMEDOUT' || returnObject.error.code === 'ESOCKETTIMEDOUT' || returnObject.error.code === 'ECONNRESET'))) { + (returnObject.error.code === 'ETIMEDOUT' || returnObject.error.code === 'ESOCKETTIMEDOUT' || returnObject.error.code === 'ECONNRESET' || returnObject.error.code === 'EAI_AGAIN'))) { if (retryRequestOptions.currentLocation === Constants.StorageLocation.PRIMARY) { lastPrimaryAttempt = returnObject.operationEndTime;