Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/Connector.java @ 906:eaf271fb747f
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 07 Oct 2016 03:59:44 -0600 |
parents | e7175965e6cf |
children | bc4e299de953 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Connector.java Fri Oct 07 00:59:18 2016 -0600 +++ b/src/org/eclipse/jetty/server/Connector.java Fri Oct 07 03:59:44 2016 -0600 @@ -221,7 +221,7 @@ // Start selector thread ThreadPoolExecutor _threadPool = server.threadPool; for (int i = 0; i < _acceptors; i++) - _threadPool.execute(new Acceptor(i)); + _threadPool.execute(new Acceptor()); if (server.isLowOnThreads()) LOG.warn("insufficient threads configured for {}",this); @@ -280,7 +280,7 @@ } /* ------------------------------------------------------------ */ - protected abstract void accept(int acceptorID) throws IOException, InterruptedException; + protected abstract void accept() throws IOException, InterruptedException; /* ------------------------------------------------------------ */ public void stopAccept(int acceptorID) throws Exception @@ -387,19 +387,12 @@ /* ------------------------------------------------------------ */ private class Acceptor implements Runnable { - int _acceptor = 0; - Acceptor(int id) - { - _acceptor = id; - } - - /* ------------------------------------------------------------ */ public void run() { Thread current = Thread.currentThread(); String name = current.getName(); - current.setName(name + " Acceptor" + _acceptor + " " + Connector.this); + current.setName(name + " Acceptor" + " " + Connector.this); try { @@ -407,7 +400,7 @@ { try { - accept(_acceptor); + accept(); } catch (EofException e) {