Implement keepAliveCount in a thread safe way, and as an estimate
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 8 Dec 2008 16:24:05 +0000 (16:24 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 8 Dec 2008 16:24:05 +0000 (16:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@724393 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioEndpoint.java

index aebdce1..13f78d4 100644 (file)
@@ -707,7 +707,7 @@ public class NioEndpoint {
         } else {
             int sum = 0;
             for (int i=0; i<pollers.length; i++) {
-                sum += pollers[i].selector.keys().size();
+                sum += pollers[i].getKeyCount();
             }
             return sum;
         }