Skip to content

Commit d046bb5

Browse files
committed
Revert previous commit
1 parent df75993 commit d046bb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

providers/netty3/src/main/java/org/asynchttpclient/netty/channel/ChannelManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ public ChannelManager(final AsyncHttpClientConfig config, NettyAsyncHttpProvider
126126
tooManyConnections = buildStaticIOException(String.format("Too many connections %s", config.getMaxConnections()));
127127
tooManyConnectionsPerHost = buildStaticIOException(String.format("Too many connections per host %s", config.getMaxConnectionsPerHost()));
128128
poolAlreadyClosed = buildStaticIOException("Pool is already closed");
129-
maxTotalConnectionsEnabled = config.isAllowPoolingConnections() && config.getMaxConnections() > 0;
130-
maxConnectionsPerHostEnabled = config.isAllowPoolingConnections() && config.getMaxConnectionsPerHost() > 0;
129+
maxTotalConnectionsEnabled = config.getMaxConnections() > 0;
130+
maxConnectionsPerHostEnabled = config.getMaxConnectionsPerHost() > 0;
131131

132132
if (maxTotalConnectionsEnabled) {
133133
openChannels = new CleanupChannelGroup("asyncHttpClient") {

providers/netty4/src/main/java/org/asynchttpclient/netty/channel/ChannelManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ public ChannelManager(final AsyncHttpClientConfig config, NettyAsyncHttpProvider
122122
tooManyConnections = buildStaticIOException(String.format("Too many connections %s", config.getMaxConnections()));
123123
tooManyConnectionsPerHost = buildStaticIOException(String.format("Too many connections per host %s", config.getMaxConnectionsPerHost()));
124124
poolAlreadyClosed = buildStaticIOException("Pool is already closed");
125-
maxTotalConnectionsEnabled = config.isAllowPoolingConnections() && config.getMaxConnections() > 0;
126-
maxConnectionsPerHostEnabled = config.isAllowPoolingConnections() && config.getMaxConnectionsPerHost() > 0;
125+
maxTotalConnectionsEnabled = config.getMaxConnections() > 0;
126+
maxConnectionsPerHostEnabled = config.getMaxConnectionsPerHost() > 0;
127127

128128
if (maxTotalConnectionsEnabled) {
129129
openChannels = new CleanupChannelGroup("asyncHttpClient") {

0 commit comments

Comments
 (0)