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 c90cf86 commit 094fcc0Copy full SHA for 094fcc0
providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/DefaultChannelPool.java
@@ -72,7 +72,9 @@ public DefaultChannelPool(//
72
this.maxIdleTime = maxIdleTime;
73
this.maxConnectionLifeTimeInMs = maxConnectionLifeTimeInMs;
74
this.nettyTimer = nettyTimer;
75
- scheduleNewIdleChannelDetector(new IdleChannelDetector());
+ if (maxIdleTime > 0L) {
76
+ scheduleNewIdleChannelDetector(new IdleChannelDetector());
77
+ }
78
}
79
80
private void scheduleNewIdleChannelDetector(TimerTask task) {
0 commit comments