Author: remm Date: Thu Nov 15 15:00:15 2018 New Revision: 1846660 URL: http://svn.apache.org/viewvc?rev=1846660&view=rev Log: Improve comment according to current behavior.
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java?rev=1846660&r1=1846659&r2=1846660&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Thu Nov 15 15:00:15 2018 @@ -132,13 +132,13 @@ public class Nio2Endpoint extends Abstra public void bind() throws Exception { // Create worker collection - if ( getExecutor() == null ) { + if (getExecutor() == null) { createExecutor(); } if (getExecutor() instanceof ExecutorService) { threadGroup = AsynchronousChannelGroup.withThreadPool((ExecutorService) getExecutor()); } - // AsynchronousChannelGroup currently needs exclusive access to its executor service + // AsynchronousChannelGroup needs exclusive access to its executor service if (!internalExecutor) { log.warn(sm.getString("endpoint.nio2.exclusiveExecutor")); } @@ -146,11 +146,10 @@ public class Nio2Endpoint extends Abstra serverSock = AsynchronousServerSocketChannel.open(threadGroup); socketProperties.setProperties(serverSock); InetSocketAddress addr = new InetSocketAddress(getAddress(), getPortWithOffset()); - serverSock.bind(addr,getAcceptCount()); + serverSock.bind(addr, getAcceptCount()); - // Initialize thread count defaults for acceptor, poller + // NIO 2 does not use a dedicated accept thread if (acceptorThreadCount != 1) { - // NIO2 does not allow any form of IO concurrency acceptorThreadCount = 1; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org