Starting to work on maxConnections attribute for BIO/NIO connectors to allow administ...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 16 Dec 2010 21:09:49 +0000 (21:09 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 16 Dec 2010 21:09:49 +0000 (21:09 +0000)
commit768a4050de983ef0f5b51c0c95ed19657a591b74
tree2b4b5f7f69025714042e0fc49e3e0df83e209650
parent462da703478423acfe1271069e1d2147f7ad1552
Starting to work on maxConnections attribute for BIO/NIO connectors to allow administrators to throttle how accepting
connections is handled. Implement a CounterLatch to keep track of the
connection count while also allowing the acceptor
thread block while the max has been reached

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1050161 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/coyote/AbstractProtocolHandler.java
java/org/apache/tomcat/util/threads/CounterLatch.java [new file with mode: 0644]
test/org/apache/tomcat/util/threads/TestCounterLatch.java [new file with mode: 0644]