TimelineClient failed to retry on java.net.SocketTimeoutException: Read timed out

This commit is contained in:
Varun Saxena 2016-09-23 13:23:54 +05:30
parent d85d9b2e7b
commit 2e6ee95716

View File

@ -265,7 +265,8 @@ public Object run() {
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 {