changeset 888:1aa58272794f

remove _acceptQueueSize
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 06 Oct 2016 23:12:00 -0600
parents df84a1741687
children 5731a7707466
files src/org/eclipse/jetty/server/Connector.java src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java src/org/eclipse/jetty/server/nio/SelectChannelConnector.java
diffstat 3 files changed, 2 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Connector.java	Tue Oct 04 23:59:56 2016 -0600
+++ b/src/org/eclipse/jetty/server/Connector.java	Thu Oct 06 23:12:00 2016 -0600
@@ -66,7 +66,6 @@
 	private int _integralPort = 0;
 	private String _confidentialScheme = HttpSchemes.HTTPS;
 	private int _confidentialPort = 0;
-	private int _acceptQueueSize = 0;
 	private int _acceptors = 1;
 	private int _acceptorPriorityOffset = 0;
 	private boolean _useDNS;
@@ -199,25 +198,6 @@
 
 	/* ------------------------------------------------------------ */
 	/**
-	 * @return Returns the acceptQueueSize.
-	 */
-	public int getAcceptQueueSize()
-	{
-		return _acceptQueueSize;
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
-	 * @param acceptQueueSize
-	 *            The acceptQueueSize to set.
-	 */
-	public void setAcceptQueueSize(int acceptQueueSize)
-	{
-		_acceptQueueSize = acceptQueueSize;
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
 	 * @return Returns the number of acceptor threads.
 	 */
 	public int getAcceptors()
--- a/src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java	Tue Oct 04 23:59:56 2016 -0600
+++ b/src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java	Thu Oct 06 23:12:00 2016 -0600
@@ -127,7 +127,7 @@
 
 		// Bind the server socket to the local host and port
 		InetSocketAddress addr = getHost()==null?new InetSocketAddress(port):new InetSocketAddress(getHost(),port);
-		_acceptChannel.socket().bind(addr,getAcceptQueueSize());
+		_acceptChannel.socket().bind(addr,0);
 	}
 
 	/* ------------------------------------------------------------ */
--- a/src/org/eclipse/jetty/server/nio/SelectChannelConnector.java	Tue Oct 04 23:59:56 2016 -0600
+++ b/src/org/eclipse/jetty/server/nio/SelectChannelConnector.java	Thu Oct 06 23:12:00 2016 -0600
@@ -176,7 +176,7 @@
 				// Bind the server socket to the local host and port
 				_acceptChannel.socket().setReuseAddress(getReuseAddress());
 				InetSocketAddress addr = getHost()==null?new InetSocketAddress(port):new InetSocketAddress(getHost(),port);
-				_acceptChannel.socket().bind(addr,getAcceptQueueSize());
+				_acceptChannel.socket().bind(addr,0);
 
 				_localPort=_acceptChannel.socket().getLocalPort();
 				if (_localPort<=0)