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 a84e03b commit 24deb70Copy full SHA for 24deb70
providers/netty3/src/main/java/org/asynchttpclient/providers/netty3/channel/ChannelManager.java
@@ -284,10 +284,10 @@ protected String getTargetContentEncoding(String contentEncoding) throws Excepti
284
public final void tryToOfferChannelToPool(Channel channel, boolean keepAlive, String partition) {
285
if (channel.isConnected() && keepAlive && channel.isReadable()) {
286
LOGGER.debug("Adding key: {} for channel {}", partition, channel);
287
+ Channels.setDiscard(channel);
288
channelPool.offer(channel, partition);
289
if (maxConnectionsPerHostEnabled)
290
channelId2KeyPool.putIfAbsent(channel.getId(), partition);
- Channels.setDiscard(channel);
291
} else {
292
// not offered
293
closeChannel(channel);
0 commit comments