changeset 897:821e4634b787

remove _reuseAddress
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 06 Oct 2016 23:52:53 -0600
parents d002da24b510
children 39c12b2306a2
files src/org/eclipse/jetty/server/Connector.java src/org/eclipse/jetty/server/nio/SelectChannelConnector.java
diffstat 2 files changed, 1 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Connector.java	Thu Oct 06 23:46:51 2016 -0600
+++ b/src/org/eclipse/jetty/server/Connector.java	Thu Oct 06 23:52:53 2016 -0600
@@ -66,8 +66,6 @@
 	private int _acceptorPriorityOffset = 0;
 	private boolean _useDNS;
 
-	private boolean _reuseAddress = true;
-
 	protected int _maxIdleTime = 200000;
 	protected int _lowResourceMaxIdleTime = -1;
 	protected int _soLingerTime = -1;
@@ -580,25 +578,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	/**
-	 * @return True if the the server socket will be opened in SO_REUSEADDR mode.
-	 */
-	public boolean getReuseAddress()
-	{
-		return _reuseAddress;
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
-	 * @param reuseAddress
-	 *            True if the the server socket will be opened in SO_REUSEADDR mode.
-	 */
-	public void setReuseAddress(boolean reuseAddress)
-	{
-		_reuseAddress = reuseAddress;
-	}
-
-	/* ------------------------------------------------------------ */
 	public final boolean isLowResources()
 	{
 		return server.isLowOnThreads();
--- a/src/org/eclipse/jetty/server/nio/SelectChannelConnector.java	Thu Oct 06 23:46:51 2016 -0600
+++ b/src/org/eclipse/jetty/server/nio/SelectChannelConnector.java	Thu Oct 06 23:52:53 2016 -0600
@@ -174,7 +174,7 @@
 				_acceptChannel.configureBlocking(true);
 
 				// Bind the server socket to the local host and port
-				_acceptChannel.socket().setReuseAddress(getReuseAddress());
+				_acceptChannel.socket().setReuseAddress(true);
 				InetSocketAddress addr = getHost()==null?new InetSocketAddress(port):new InetSocketAddress(getHost(),port);
 				_acceptChannel.socket().bind(addr,0);