Skip to content

Commit 05c8606

Browse files
committed
Oops
1 parent e3aa4c0 commit 05c8606

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

server/src/main/java/org/elasticsearch/transport/TransportSettings.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.util.function.Function;
3131

3232
import static java.util.Collections.emptyList;
33-
import static org.elasticsearch.common.network.NetworkService.SET_EXTRA_KEEP_ALIVE_OPTIONS;
3433
import static org.elasticsearch.common.settings.Setting.affixKeySetting;
3534
import static org.elasticsearch.common.settings.Setting.boolSetting;
3635
import static org.elasticsearch.common.settings.Setting.intSetting;
@@ -82,23 +81,20 @@ public final class TransportSettings {
8281
affixKeySetting("transport.profiles.", "tcp.keep_alive",
8382
key -> boolSetting(key, TCP_KEEP_ALIVE, Setting.Property.NodeScope));
8483
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);
8785
public static final Setting.AffixSetting<Integer> TCP_KEEP_IDLE_PROFILE =
8886
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));
9088
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);
9390
public static final Setting.AffixSetting<Integer> TCP_KEEP_INTERVAL_PROFILE =
9491
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));
9693
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);
9995
public static final Setting.AffixSetting<Integer> TCP_KEEP_COUNT_PROFILE =
10096
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));
10298
public static final Setting<Boolean> TCP_REUSE_ADDRESS =
10399
boolSetting("transport.tcp.reuse_address", NetworkService.TCP_REUSE_ADDRESS, Setting.Property.NodeScope);
104100
public static final Setting.AffixSetting<Boolean> TCP_REUSE_ADDRESS_PROFILE =

0 commit comments

Comments
 (0)