From 3c8c15db015af5ab81ee87a1362bbbbb3f9c89b7 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 22 Feb 2018 12:27:45 -0800 Subject: [PATCH] s3: use a constant backoff since it takes forever to fail otherwise --- src/storage/s3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/s3.js b/src/storage/s3.js index 1417c076e..b03f642b4 100644 --- a/src/storage/s3.js +++ b/src/storage/s3.js @@ -72,7 +72,7 @@ function getCaasConfig(apiConfig, callback) { region: apiConfig.region || 'us-east-1', maxRetries: 5, retryDelayOptions: { - base: 20000 // 2^5 * 20 seconds + customBackoff: () => 20000 // constant backoff - https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#retryDelayOptions-property }, httpOptions: { connectTimeout: 10000 // https://github.com/aws/aws-sdk-js/pull/1446 @@ -104,7 +104,7 @@ function getS3Config(apiConfig, callback) { region: apiConfig.region || 'us-east-1', maxRetries: 5, retryDelayOptions: { - base: 20000 // 2^5 * 20 seconds + customBackoff: () => 20000 // constant backoff - https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#retryDelayOptions-property }, httpOptions: { connectTimeout: 10000 // https://github.com/aws/aws-sdk-js/pull/1446