File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
client/src/main/java/org/asynchttpclient/netty/channel Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,6 @@ private ChannelId channelId(Channel channel) {
64
64
return Channels .getChannelId (channel );
65
65
}
66
66
67
- private int cleanerPeriod (int ttl ) {
68
- return (int ) Math .ceil (ttl / 2.0 );
69
- }
70
-
71
67
public DefaultChannelPool (int maxIdleTime ,//
72
68
int connectionTtl ,//
73
69
Timer nettyTimer ) {
@@ -78,8 +74,7 @@ public DefaultChannelPool(int maxIdleTime,//
78
74
this .nettyTimer = nettyTimer ;
79
75
maxIdleTimeEnabled = maxIdleTime > 0 ;
80
76
81
- // period is half
82
- cleanerPeriod = Math .min (connectionTtlEnabled ? cleanerPeriod (connectionTtl ) : Integer .MAX_VALUE , maxIdleTimeEnabled ? cleanerPeriod (maxIdleTime ) : Long .MAX_VALUE );
77
+ cleanerPeriod = Math .min (connectionTtlEnabled ? connectionTtl : Integer .MAX_VALUE , maxIdleTimeEnabled ? maxIdleTime : Long .MAX_VALUE );
83
78
84
79
if (connectionTtlEnabled || maxIdleTimeEnabled )
85
80
scheduleNewIdleChannelDetector (new IdleChannelDetector ());
You can’t perform that action at this time.
0 commit comments