From 81a23fa7e2eb4d58d5edf2a145af5c8bbe4c331e Mon Sep 17 00:00:00 2001 From: Chaker Benhamed Date: Fri, 15 Mar 2019 13:16:20 +0100 Subject: [PATCH] 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). --- src/libstore/s3-binary-cache-store.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc index 51de89e0d..cd547a964 100644 --- a/src/libstore/s3-binary-cache-store.cc +++ b/src/libstore/s3-binary-cache-store.cc @@ -126,6 +126,7 @@ ref S3Helper::makeConfig(const string & region res->endpointOverride = endpoint; } res->requestTimeoutMs = 600 * 1000; + res->connectTimeoutMs = 5 * 1000; res->retryStrategy = std::make_shared(); res->caFile = settings.caFile; return res;