change the default reuse_addres to not being set automatically to true on both tcp and http transports

This commit is contained in:
kimchy 2010-04-13 03:09:09 +03:00
parent a79dae696a
commit 913bc2f947
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ public class NettyHttpServerTransport extends AbstractLifecycleComponent<HttpSer
this.publishHost = componentSettings.get("publish_host");
this.tcpNoDelay = componentSettings.getAsBoolean("tcp_no_delay", true);
this.tcpKeepAlive = componentSettings.getAsBoolean("tcp_keep_alive", null);
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", true);
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", null);
this.tcpSendBufferSize = componentSettings.getAsSize("tcp_send_buffer_size", null);
this.tcpReceiveBufferSize = componentSettings.getAsSize("tcp_receive_buffer_size", null);

View File

@ -142,7 +142,7 @@ public class NettyTransport extends AbstractLifecycleComponent<Transport> implem
this.connectRetries = componentSettings.getAsInt("connect_retries", 2);
this.tcpNoDelay = componentSettings.getAsBoolean("tcp_no_delay", true);
this.tcpKeepAlive = componentSettings.getAsBoolean("tcp_keep_alive", null);
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", true);
this.reuseAddress = componentSettings.getAsBoolean("reuse_address", null);
this.tcpSendBufferSize = componentSettings.getAsSize("tcp_send_buffer_size", null);
this.tcpReceiveBufferSize = componentSettings.getAsSize("tcp_receive_buffer_size", null);
}