File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
providers/netty3/src/main/java/org/asynchttpclient/providers/netty3/channel Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -284,10 +284,10 @@ protected String getTargetContentEncoding(String contentEncoding) throws Excepti
284
284
public final void tryToOfferChannelToPool (Channel channel , boolean keepAlive , String partition ) {
285
285
if (channel .isConnected () && keepAlive && channel .isReadable ()) {
286
286
LOGGER .debug ("Adding key: {} for channel {}" , partition , channel );
287
+ Channels .setDiscard (channel );
287
288
channelPool .offer (channel , partition );
288
289
if (maxConnectionsPerHostEnabled )
289
290
channelId2KeyPool .putIfAbsent (channel .getId (), partition );
290
- Channels .setDiscard (channel );
291
291
} else {
292
292
// not offered
293
293
closeChannel (channel );
You can’t perform that action at this time.
0 commit comments