Author: remm
Date: Wed May 20 07:24:41 2015
New Revision: 1680467
URL: http://svn.apache.org/r1680467
Log:
57936: Improve robustness of accept thread count for NIO2, since it has to be
1. Submitted by Oliver Kant.
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=1680467&r1=1680466&r2=1680467&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java Wed May 20
07:24:41 2015
@@ -200,7 +200,7 @@ public class Nio2Endpoint extends Abstra
serverSock.bind(addr,getBacklog());
// Initialize thread count defaults for acceptor, poller
- if (acceptorThreadCount == 0) {
+ if (acceptorThreadCount != 1) {
// NIO2 does not allow any form of IO concurrency
acceptorThreadCount = 1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]