changeset 899:3abf945c33e3

remove _acceptorPriorityOffset
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 07 Oct 2016 00:02:32 -0600
parents 39c12b2306a2
children 6ffa88e38ba9
files src/org/eclipse/jetty/server/Connector.java
diffstat 1 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Connector.java	Thu Oct 06 23:57:43 2016 -0600
+++ b/src/org/eclipse/jetty/server/Connector.java	Fri Oct 07 00:02:32 2016 -0600
@@ -63,7 +63,6 @@
 	private String _host;
 	public final int port;
 	private int _acceptors = 1;
-	private int _acceptorPriorityOffset = 0;
 
 	protected int _maxIdleTime = 200000;
 	protected int _lowResourceMaxIdleTime = -1;
@@ -468,11 +467,9 @@
 				name = _acceptorThreads[_acceptor].getName();
 				current.setName(name + " Acceptor" + _acceptor + " " + Connector.this);
 			}
-			int old_priority = current.getPriority();
 
 			try
 			{
-				current.setPriority(old_priority - _acceptorPriorityOffset);
 				while (isRunning() && getConnection() != null)
 				{
 					try
@@ -500,7 +497,6 @@
 			}
 			finally
 			{
-				current.setPriority(old_priority);
 				current.setName(name);
 
 				synchronized (Connector.this)
@@ -543,28 +539,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	/**
-	 * @return the acceptorPriority
-	 */
-	public int getAcceptorPriorityOffset()
-	{
-		return _acceptorPriorityOffset;
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
-	 * Set the priority offset of the acceptor threads. The priority is adjusted by this amount (default 0) to either favour the acceptance of new threads and
-	 * newly active connections or to favour the handling of already dispatched connections.
-	 *
-	 * @param offset
-	 *            the amount to alter the priority of the acceptor threads.
-	 */
-	public void setAcceptorPriorityOffset(int offset)
-	{
-		_acceptorPriorityOffset = offset;
-	}
-
-	/* ------------------------------------------------------------ */
 	public final boolean isLowResources()
 	{
 		return server.isLowOnThreads();