File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
netty3/src/main/java/org/asynchttpclient/providers/netty3/request
netty4/src/main/java/org/asynchttpclient/providers/netty4/request Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,10 @@ public void operationComplete(ChannelFuture handshakeFuture) throws Exception {
115
115
116
116
writeRequest (channel , poolKey );
117
117
} else {
118
- abortChannelPreemption (poolKey );
119
- future .abort (new ConnectException ("HostnameVerifier exception" ));
118
+ onFutureFailure (channel , new ConnectException ("HostnameVerifier exception" ));
120
119
}
120
+ } else {
121
+ onFutureFailure (channel , handshakeFuture .getCause ());
121
122
}
122
123
}
123
124
});
Original file line number Diff line number Diff line change @@ -112,9 +112,10 @@ public void operationComplete(Future<? super Channel> handshakeFuture) throws Ex
112
112
113
113
writeRequest (channel );
114
114
} else {
115
- abortChannelPreemption (poolKey );
116
- future .abort (new ConnectException ("HostnameVerifier exception" ));
115
+ onFutureFailure (channel , new ConnectException ("HostnameVerifier exception" ));
117
116
}
117
+ } else {
118
+ onFutureFailure (channel , handshakeFuture .cause ());
118
119
}
119
120
}
120
121
});
You can’t perform that action at this time.
0 commit comments