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 b166c9d commit 961e0f9Copy full SHA for 961e0f9
providers/netty4/src/main/java/org/asynchttpclient/providers/netty4/channel/ChannelManager.java
@@ -260,10 +260,10 @@ protected String getTargetContentEncoding(String contentEncoding) throws Excepti
260
public final void tryToOfferChannelToPool(Channel channel, boolean keepAlive, String partitionId) {
261
if (channel.isActive() && keepAlive && channel.isActive()) {
262
LOGGER.debug("Adding key: {} for channel {}", partitionId, channel);
263
+ Channels.setDiscard(channel);
264
channelPool.offer(channel, partitionId);
265
if (maxConnectionsPerHostEnabled)
266
channel2KeyPool.putIfAbsent(channel, partitionId);
- Channels.setDiscard(channel);
267
} else {
268
// not offered
269
closeChannel(channel);
0 commit comments