|
30 | 30 | import java.util.function.Function; |
31 | 31 |
|
32 | 32 | import static java.util.Collections.emptyList; |
33 | | -import static org.elasticsearch.common.network.NetworkService.SET_EXTRA_KEEP_ALIVE_OPTIONS; |
34 | 33 | import static org.elasticsearch.common.settings.Setting.affixKeySetting; |
35 | 34 | import static org.elasticsearch.common.settings.Setting.boolSetting; |
36 | 35 | import static org.elasticsearch.common.settings.Setting.intSetting; |
@@ -82,23 +81,20 @@ public final class TransportSettings { |
82 | 81 | affixKeySetting("transport.profiles.", "tcp.keep_alive", |
83 | 82 | key -> boolSetting(key, TCP_KEEP_ALIVE, Setting.Property.NodeScope)); |
84 | 83 | public static final Setting<Integer> TCP_KEEP_IDLE = |
85 | | - intSetting("transport.tcp.keep_idle", NetworkService.TCP_KEEP_IDLE, |
86 | | - SET_EXTRA_KEEP_ALIVE_OPTIONS ? 60 : -1, Setting.Property.NodeScope); |
| 84 | + intSetting("transport.tcp.keep_idle", NetworkService.TCP_KEEP_IDLE, -1, Setting.Property.NodeScope); |
87 | 85 | public static final Setting.AffixSetting<Integer> TCP_KEEP_IDLE_PROFILE = |
88 | 86 | affixKeySetting("transport.profiles.", "tcp.keep_idle", |
89 | | - key -> intSetting(key, TCP_KEEP_IDLE, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 60 : -1, Setting.Property.NodeScope)); |
| 87 | + key -> intSetting(key, TCP_KEEP_IDLE, -1, Setting.Property.NodeScope)); |
90 | 88 | public static final Setting<Integer> TCP_KEEP_INTERVAL = |
91 | | - intSetting("transport.tcp.keep_interval", NetworkService.TCP_KEEP_INTERVAL, |
92 | | - SET_EXTRA_KEEP_ALIVE_OPTIONS ? 10 : -1, Setting.Property.NodeScope); |
| 89 | + intSetting("transport.tcp.keep_interval", NetworkService.TCP_KEEP_INTERVAL, -1, Setting.Property.NodeScope); |
93 | 90 | public static final Setting.AffixSetting<Integer> TCP_KEEP_INTERVAL_PROFILE = |
94 | 91 | affixKeySetting("transport.profiles.", "tcp.keep_interval", |
95 | | - key -> intSetting(key, TCP_KEEP_INTERVAL, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 10 : -1, Setting.Property.NodeScope)); |
| 92 | + key -> intSetting(key, TCP_KEEP_INTERVAL, -1, Setting.Property.NodeScope)); |
96 | 93 | public static final Setting<Integer> TCP_KEEP_COUNT = |
97 | | - intSetting("transport.tcp.keep_count", NetworkService.TCP_KEEP_COUNT, |
98 | | - SET_EXTRA_KEEP_ALIVE_OPTIONS ? 3 : -1, Setting.Property.NodeScope); |
| 94 | + intSetting("transport.tcp.keep_count", NetworkService.TCP_KEEP_COUNT, -1, Setting.Property.NodeScope); |
99 | 95 | public static final Setting.AffixSetting<Integer> TCP_KEEP_COUNT_PROFILE = |
100 | 96 | affixKeySetting("transport.profiles.", "tcp.keep_count", |
101 | | - key -> intSetting(key, TCP_KEEP_COUNT, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 3 : -1, Setting.Property.NodeScope)); |
| 97 | + key -> intSetting(key, TCP_KEEP_COUNT, -1, Setting.Property.NodeScope)); |
102 | 98 | public static final Setting<Boolean> TCP_REUSE_ADDRESS = |
103 | 99 | boolSetting("transport.tcp.reuse_address", NetworkService.TCP_REUSE_ADDRESS, Setting.Property.NodeScope); |
104 | 100 | public static final Setting.AffixSetting<Boolean> TCP_REUSE_ADDRESS_PROFILE = |
|
0 commit comments