Skip to content

Commit 913bc2f

Browse files
committed
change the default reuse_addres to not being set automatically to true on both tcp and http transports
1 parent a79dae6 commit 913bc2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/http/netty/NettyHttpServerTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class NettyHttpServerTransport extends AbstractLifecycleComponent<HttpSer
103103
this.publishHost = componentSettings.get("publish_host");
104104
this.tcpNoDelay = componentSettings.getAsBoolean("tcp_no_delay", true);
105105
this.tcpKeepAlive = componentSettings.getAsBoolean("tcp_keep_alive", null);
106-
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", true);
106+
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", null);
107107
this.tcpSendBufferSize = componentSettings.getAsSize("tcp_send_buffer_size", null);
108108
this.tcpReceiveBufferSize = componentSettings.getAsSize("tcp_receive_buffer_size", null);
109109

modules/elasticsearch/src/main/java/org/elasticsearch/transport/netty/NettyTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public NettyTransport(ThreadPool threadPool) {
142142
this.connectRetries = componentSettings.getAsInt("connect_retries", 2);
143143
this.tcpNoDelay = componentSettings.getAsBoolean("tcp_no_delay", true);
144144
this.tcpKeepAlive = componentSettings.getAsBoolean("tcp_keep_alive", null);
145-
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", true);
145+
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", null);
146146
this.tcpSendBufferSize = componentSettings.getAsSize("tcp_send_buffer_size", null);
147147
this.tcpReceiveBufferSize = componentSettings.getAsSize("tcp_receive_buffer_size", null);
148148
}

0 commit comments

Comments
 (0)