Skip to content

Commit a8a8faa

Browse files
author
Stephane Landelle
committed
Notify Handshake failures, close AsyncHttpClient#767
1 parent 104865d commit a8a8faa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/ning/http/client/providers/netty/request/NettyConnectListener.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ public void operationComplete(ChannelFuture handshakeFuture) throws Exception {
115115

116116
writeRequest(channel, poolKey);
117117
} else {
118-
abortChannelPreemption(poolKey);
119-
future.abort(new ConnectException("HostnameVerifier exception"));
118+
onFutureFailure(channel, new ConnectException("HostnameVerifier exception"));
120119
}
120+
} else {
121+
onFutureFailure(channel, handshakeFuture.getCause());
121122
}
122123
}
123124
});

0 commit comments

Comments
 (0)