Skip to content

Commit

Permalink
Merge pull request #81 from j-baker/jbaker/dont_assume_that_ssl_excep…
Browse files Browse the repository at this point in the history
…tions_are_success

Don't assume that an SSL exception when health checking a container means it's up.
  • Loading branch information
CRogers authored Jun 23, 2016
2 parents 1aed4aa + bbe06eb commit e424137
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public boolean isHttpResponding(Function<DockerPort, String> urlFunction) {
log.debug("Received 404, assuming port active");
return true;
} catch (SSLHandshakeException e) {
log.debug("Received SSL response, assuming port active");
return true;
log.debug("Received bad SSL response, assuming port inactive");
return false;
} catch (IOException e) {
log.trace("Error acquiring http connection, assuming port open but inactive", e);
return false;
Expand Down

0 comments on commit e424137

Please sign in to comment.