diff options
Diffstat (limited to 'sonar-runner-api/src/main/java/org')
-rw-r--r-- | sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java b/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java index da9a86c..45a7606 100644 --- a/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java +++ b/sonar-runner-api/src/main/java/org/sonar/runner/impl/ServerConnection.java @@ -139,7 +139,8 @@ class ServerConnection { try { return downloadString(fullUrl, isCacheEnable); } catch (HttpRequest.HttpRequestException e) { - if (e.getCause() instanceof ConnectException || e.getCause() instanceof UnknownHostException) { + if (e.getCause() instanceof ConnectException || e.getCause() instanceof UnknownHostException || + e.getCause() instanceof java.net.SocketTimeoutException) { if (isCacheEnable) { return fallbackToCache(fullUrl, e); } |