We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15451ae commit 0f66c2dCopy full SHA for 0f66c2d
providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/ChannelManager.java
@@ -242,7 +242,7 @@ protected void initChannel(Channel ch) throws Exception {
242
}
243
244
public final void tryToOfferChannelToPool(Channel channel, boolean keepAlive, String partitionId) {
245
- if (keepAlive && channel.isActive()) {
+ if (channel.isActive() && keepAlive && channel.isActive()) {
246
LOGGER.debug("Adding key: {} for channel {}", partitionId, channel);
247
channelPool.offer(channel, partitionId);
248
if (maxConnectionsPerHostEnabled)
0 commit comments