Make uploads work with very slow upload speeds
chunk uploads get a timeout of 2mins (derived from http.timeout). On servers like kimsufi, uploads takes forever (100 MB/sec limit). Currently, our upload code does not dynamically adapt itself to changing the concurrency when network is slow.
This commit is contained in:
@@ -75,7 +75,8 @@ function getCaasConfig(apiConfig, callback) {
|
||||
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
|
||||
connectTimeout: 10000, // https://github.com/aws/aws-sdk-js/pull/1446
|
||||
timeout: 300 * 1000 // https://github.com/aws/aws-sdk-js/issues/1704 (allow 5MB chunk upload to take upto 5 minutes)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -107,7 +108,8 @@ function getS3Config(apiConfig, callback) {
|
||||
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
|
||||
connectTimeout: 10000, // https://github.com/aws/aws-sdk-js/pull/1446
|
||||
timeout: 300 * 1000 // https://github.com/aws/aws-sdk-js/issues/1704 (allow 5MB chunk upload to take upto 5 minutes)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user