From b4d58f0609b1c252fa44799eccbbd9c691c7c2ac Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 20 Nov 2024 07:13:38 +0530 Subject: [PATCH] aws: add a 20min timeout in some services like b2, the multi-part copy just hangs. this allows us to retry --- src/storage/s3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/s3.js b/src/storage/s3.js index 5b3798274..cf671dd99 100644 --- a/src/storage/s3.js +++ b/src/storage/s3.js @@ -72,7 +72,7 @@ function getS3Config(apiConfig) { }, httpOptions: { connectTimeout: 60000, // https://github.com/aws/aws-sdk-js/pull/1446 - timeout: 0 // https://github.com/aws/aws-sdk-js/issues/1704 (allow unlimited time for chunk upload) + timeout: 20 * 60 * 1000 // https://github.com/aws/aws-sdk-js/issues/1704 } };