aws: add a 20min timeout

in some services like b2, the multi-part copy just hangs. this allows
us to retry
This commit is contained in:
Girish Ramakrishnan
2024-11-20 07:13:38 +05:30
parent 18abc214a6
commit b4d58f0609

View File

@@ -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
}
};