Skip to content

Commit 10a538c

Browse files
committed
Forcefully close connection when Future is manually cancelled during connect, close AsyncHttpClient#1131
1 parent fc63d81 commit 10a538c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/main/java/org/asynchttpclient/netty/channel/NettyConnectListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ private void writeRequest(Channel channel) {
6969

7070
if (future.isDone()) {
7171
abortChannelPreemption();
72+
Channels.silentlyCloseChannel(channel);
7273
return;
7374
}
7475

0 commit comments

Comments
 (0)