File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/com/ning/http/client/providers/netty Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 33
33
import org .slf4j .LoggerFactory ;
34
34
35
35
import javax .net .ssl .HostnameVerifier ;
36
+
36
37
import java .io .IOException ;
37
38
import java .net .ConnectException ;
38
39
import java .net .InetSocketAddress ;
@@ -85,8 +86,9 @@ public final void operationComplete(ChannelFuture f) throws Exception {
85
86
} else {
86
87
Throwable cause = f .getCause ();
87
88
88
- logger .debug ("Trying to recover a dead cached channel {} with a retry value of {} " , f .getChannel (), future .canRetry ());
89
- if (future .canRetry () && cause != null && (NettyAsyncHttpProvider .abortOnDisconnectException (cause )
89
+ boolean canRetry = future .canRetry ();
90
+ logger .debug ("Trying to recover a dead cached channel {} with a retry value of {} " , f .getChannel (), canRetry );
91
+ if (canRetry && cause != null && (NettyAsyncHttpProvider .abortOnDisconnectException (cause )
90
92
|| cause instanceof ClosedChannelException
91
93
|| future .getState () != NettyResponseFuture .STATE .NEW )) {
92
94
You can’t perform that action at this time.
0 commit comments