Skip to content

Commit 5fc67a2

Browse files
author
Stephane Landelle
committed
comments
1 parent e9e68ab commit 5fc67a2

File tree

1 file changed

+2
-1
lines changed
  • providers/netty/src/main/java/org/asynchttpclient/providers/netty/handler

1 file changed

+2
-1
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/handler/HttpProtocol.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,9 @@ public void handle(final Channel channel, final NettyResponseFuture<?> future, f
395395

396396
future.touch();
397397

398-
// The connect timeout occurred.
398+
// future is already done because of an exception or a timeout
399399
if (future.isDone()) {
400+
// FIXME isn't the channel already properly closed?
400401
channelManager.closeChannel(channel);
401402
return;
402403
}

0 commit comments

Comments
 (0)