Disable the timeout altogether for chunk to upload

This commit is contained in:
Girish Ramakrishnan
2020-11-06 14:47:03 -08:00
parent df8a71cd8b
commit bedcd6fccf
2 changed files with 3 additions and 3 deletions

View File

@@ -62,13 +62,13 @@ function getS3Config(apiConfig, callback) {
accessKeyId: apiConfig.accessKeyId,
secretAccessKey: apiConfig.secretAccessKey,
region: apiConfig.region || 'us-east-1',
maxRetries: 5,
maxRetries: 10,
retryDelayOptions: {
customBackoff: () => 20000 // constant backoff - https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#retryDelayOptions-property
},
httpOptions: {
connectTimeout: 20000, // https://github.com/aws/aws-sdk-js/pull/1446
timeout: 3000 * 1000 // https://github.com/aws/aws-sdk-js/issues/1704 (allow chunk upload to take upto 30 minutes)
timeout: 0 // https://github.com/aws/aws-sdk-js/issues/1704 (allow unlimited time for chunk upload)
}
};