Skip to content

Commit 4e4022b

Browse files
authored
Register the TCP_CONNECT_TIMEOUT setting (#36663)
This commit registers the TCP_CONNECT_TIMEOUT setting in the ClusterSettings.
1 parent 2dd56cf commit 4e4022b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/common/settings/ClusterSettings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ public void apply(Settings value, Settings current, Settings previous) {
325325
TransportSettings.OLD_TRANSPORT_COMPRESS,
326326
TransportSettings.TRANSPORT_COMPRESS,
327327
TransportSettings.PING_SCHEDULE,
328+
TransportSettings.TCP_CONNECT_TIMEOUT,
328329
TransportSettings.CONNECT_TIMEOUT,
329330
TransportSettings.DEFAULT_FEATURES_SETTING,
330331
TransportSettings.OLD_TCP_NO_DELAY,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public final class TransportSettings {
7171
// the scheduled internal ping interval setting, defaults to disabled (-1)
7272
public static final Setting<TimeValue> PING_SCHEDULE =
7373
timeSetting("transport.ping_schedule", TimeValue.timeValueSeconds(-1), Setting.Property.NodeScope);
74+
// TODO: Deprecate in 7.0
7475
public static final Setting<TimeValue> TCP_CONNECT_TIMEOUT =
7576
timeSetting("transport.tcp.connect_timeout", NetworkService.TCP_CONNECT_TIMEOUT, Setting.Property.NodeScope);
7677
public static final Setting<TimeValue> CONNECT_TIMEOUT =

0 commit comments

Comments
 (0)