about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorChaker Benhamed <chaker.benhamed@gmail.com>2019-03-15T12·16+0100
committerChaker Benhamed <chaker.benhamed@gmail.com>2019-03-15T12·23+0100
commit81a23fa7e2eb4d58d5edf2a145af5c8bbe4c331e (patch)
treeab4da57acd022d7c925a3c7280cfaea900f12821 /src/libstore
parentcaf297a9d34be8dfab50e29dd019b9f1939a7934 (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).
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/s3-binary-cache-store.cc1
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;