Skip to content

Commit

Permalink
Add a 5 seconds of timeouts to connect to S3.
Browse files Browse the repository at this point in the history
The default is 1000ms, but we can hit it a lot of we don't have direct
link to AWS (e.g. using VPN).
  • Loading branch information
benhamad committed Mar 15, 2019
1 parent caf297a commit 81a23fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstore/s3-binary-cache-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81a23fa

Please sign in to comment.