|
@@ -265,7 +265,8 @@ public class TimelineClientImpl extends TimelineClient {
|
|
public boolean shouldRetryOn(Exception e) {
|
|
public boolean shouldRetryOn(Exception e) {
|
|
// Only retry on connection exceptions
|
|
// Only retry on connection exceptions
|
|
return (e instanceof ClientHandlerException)
|
|
return (e instanceof ClientHandlerException)
|
|
- && (e.getCause() instanceof ConnectException);
|
|
|
|
|
|
+ && (e.getCause() instanceof ConnectException ||
|
|
|
|
+ e.getCause() instanceof SocketTimeoutException);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
try {
|
|
try {
|