Skip to content

Commit

Permalink
Merge pull request NixOS#2727 from Chakerbh/master
Browse files Browse the repository at this point in the history
Add a 5 seconds of timeout to connecting to S3.
  • Loading branch information
edolstra authored Mar 15, 2019
2 parents caf297a + 81a23fa commit 806291d
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 806291d

Please sign in to comment.