diff options
author | Chaker Benhamed <chaker.benhamed@gmail.com> | 2019-03-15T12·16+0100 |
---|---|---|
committer | Chaker Benhamed <chaker.benhamed@gmail.com> | 2019-03-15T12·23+0100 |
commit | 81a23fa7e2eb4d58d5edf2a145af5c8bbe4c331e (patch) | |
tree | ab4da57acd022d7c925a3c7280cfaea900f12821 | |
parent | caf297a9d34be8dfab50e29dd019b9f1939a7934 (diff) |
Add a 5 seconds of timeouts to connect to S3.
The default is 1000ms, but we can hit it a lot of we don't have direct link to AWS (e.g. using VPN).
-rw-r--r-- | src/libstore/s3-binary-cache-store.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc index 51de89e0d92f..cd547a964850 100644 --- a/src/libstore/s3-binary-cache-store.cc +++ b/src/libstore/s3-binary-cache-store.cc @@ -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; |