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 07a4195 commit 3a00289Copy full SHA for 3a00289
src/main/java/com/ning/http/client/providers/netty/NettyConnectionsPool.java
@@ -266,7 +266,7 @@ public boolean removeAll(Channel channel) {
266
* {@inheritDoc}
267
*/
268
public boolean canCacheConnection() {
269
- return !isClosed.get() && (maxTotalConnections != -1 || channel2IdleChannel.size() < maxTotalConnections);
+ return !isClosed.get() && (maxTotalConnections == -1 || channel2IdleChannel.size() < maxTotalConnections);
270
}
271
272
/**
0 commit comments