Merge pull request #2727 from Chakerbh/master

Add a 5 seconds of timeout to connecting to S3.
This commit is contained in:
Eelco Dolstra 2019-03-15 21:25:10 +08:00 committed by GitHub
commit 806291d18c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,6 +126,7 @@ ref<Aws::Client::ClientConfiguration> S3Helper::makeConfig(const string & region
res->endpointOverride = endpoint;
}
res->requestTimeoutMs = 600 * 1000;
res->connectTimeoutMs = 5 * 1000;
res->retryStrategy = std::make_shared<RetryStrategy>();
res->caFile = settings.caFile;
return res;