about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-03-15T13·25+0800
committerGitHub <noreply@github.com>2019-03-15T13·25+0800
commit806291d18ca3f46dd3a7aa95f65cb209c45adb25 (patch)
treeab4da57acd022d7c925a3c7280cfaea900f12821
parentcaf297a9d34be8dfab50e29dd019b9f1939a7934 (diff)
parent81a23fa7e2eb4d58d5edf2a145af5c8bbe4c331e (diff)
Merge pull request #2727 from Chakerbh/master
Add a 5 seconds of timeout to connecting to S3.
-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;