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 51764e7 commit 89a811aCopy full SHA for 89a811a
src/main/java/com/ning/http/client/providers/netty/channel/ChannelManager.java
@@ -285,10 +285,10 @@ protected String getTargetContentEncoding(String contentEncoding) throws Excepti
285
public final void tryToOfferChannelToPool(Channel channel, boolean keepAlive, String partition) {
286
if (channel.isConnected() && keepAlive && channel.isReadable()) {
287
LOGGER.debug("Adding key: {} for channel {}", partition, channel);
288
+ Channels.setDiscard(channel);
289
channelPool.offer(channel, partition);
290
if (maxConnectionsPerHostEnabled)
291
channelId2Partition.putIfAbsent(channel.getId(), partition);
- Channels.setDiscard(channel);
292
} else {
293
// not offered
294
closeChannel(channel);
0 commit comments