Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
Added Unirest timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Winder committed Aug 6, 2015
1 parent 527fe3b commit 1c5c1b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public Builder defaultDockerClient() {
if (config.getUri().getScheme().startsWith("http")) {
HttpHost proxy = new HttpHost(config.getUri().getHost(), this.proxyPort);
Unirest.setProxy(proxy);
Unirest.setTimeouts(5000L, 5000L);
}
this.dockerClient = DockerClientBuilder.getInstance(config).build();
return this;
Expand Down

0 comments on commit 1c5c1b9

Please sign in to comment.