diff --git a/ribbon-core/src/main/java/com/netflix/client/RequestSpecificRetryHandler.java b/ribbon-core/src/main/java/com/netflix/client/RequestSpecificRetryHandler.java index 438191f29..3ac4736e9 100644 --- a/ribbon-core/src/main/java/com/netflix/client/RequestSpecificRetryHandler.java +++ b/ribbon-core/src/main/java/com/netflix/client/RequestSpecificRetryHandler.java @@ -1,6 +1,7 @@ package com.netflix.client; import java.net.SocketException; +import java.net.SocketTimeoutException; import java.util.List; import javax.annotation.Nullable; @@ -25,7 +26,7 @@ public class RequestSpecificRetryHandler implements RetryHandler { private final boolean okToRetryOnAllErrors; protected List> connectionRelated = - Lists.>newArrayList(SocketException.class); + Lists.>newArrayList(SocketException.class, SocketTimeoutException.class); public RequestSpecificRetryHandler(boolean okToRetryOnConnectErrors, boolean okToRetryOnAllErrors) { this(okToRetryOnConnectErrors, okToRetryOnAllErrors, RetryHandler.DEFAULT, null);