diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/http/LogRetriever.java b/configserver/src/main/java/com/yahoo/vespa/config/server/http/LogRetriever.java index 3d245146ac1..9600a0a8af7 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/http/LogRetriever.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/http/LogRetriever.java @@ -12,6 +12,7 @@ import java.io.IOException; import java.io.OutputStream; +import java.net.ConnectException; import java.time.Duration; import java.time.Instant; import java.util.Optional; @@ -36,7 +37,7 @@ public HttpResponse getLogs(HttpURL logServerUri, Optional deployTime) HttpGet get = new HttpGet(logServerUri.asURI()); try { return new ProxyResponse(httpClient.execute(get)); - } catch (ConnectionRequestTimeoutException e) { + } catch (ConnectionRequestTimeoutException | ConnectException e) { return new GatewayTimeoutResponse(504); } catch (IOException e) { if (deployTime.isPresent() && Instant.now().isBefore(deployTime.get().plus(Duration.ofMinutes(5))))