Author: remy.maucherat(a)jboss.com
Date: 2013-01-16 08:28:22 -0500 (Wed, 16 Jan 2013)
New Revision: 2150
Modified:
branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AprEndpoint.java
Log:
Mladen confirmed that many Windows platforms should be fine trying to create a big poller,
XP class Windows should refuse over 1024
(which should then cause creation of multiple pollsets).
Modified: branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AprEndpoint.java
===================================================================
--- branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AprEndpoint.java 2013-01-10
15:11:48 UTC (rev 2149)
+++ branches/7.2.x/src/main/java/org/apache/tomcat/util/net/AprEndpoint.java 2013-01-16
13:28:22 UTC (rev 2150)
@@ -1423,11 +1423,6 @@
defaultPollerSize = (OS.IS_WIN32 || OS.IS_WIN64) ? (8 * 1024) : (32 *
1024);
}
}
- if ((OS.IS_WIN32 || OS.IS_WIN64) && (defaultPollerSize > 1024)) {
- // The maximum per poller to get reasonable performance is 1024
- // Adjust poller size so that it won't reach the limit
- defaultPollerSize = 1024;
- }
actualPollerSize = defaultPollerSize;
timeouts = new SocketTimeouts(defaultPollerSize);
Show replies by date