Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51240
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 26 May 2011 15:27:52 +0000 (15:27 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 26 May 2011 15:27:52 +0000 (15:27 +0000)
commit1debefbeabc034be2070736292a2b42d8639e2f3
tree05c67f0f26fbb44e6832611e228a68ec8aa3b688
parentbb8c8b8f5339d3b442ad987659dc610389c02ce9
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51240
Replace the more generic CounterLatch (that has concurrency issues) with a more specific LimitLatch that (mostly) only provides the functionality required by the connectors to implement maxConnections. It also adds support for dynamically modifying maxConnections.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1127962 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/tomcat/util/net/AbstractEndpoint.java
java/org/apache/tomcat/util/net/AprEndpoint.java
java/org/apache/tomcat/util/net/JIoEndpoint.java
java/org/apache/tomcat/util/net/NioEndpoint.java
java/org/apache/tomcat/util/threads/CounterLatch.java [deleted file]
java/org/apache/tomcat/util/threads/LimitLatch.java [new file with mode: 0644]
test/org/apache/tomcat/util/threads/TestCounterLatch.java [deleted file]
test/org/apache/tomcat/util/threads/TestLimitLatch.java [new file with mode: 0644]
webapps/docs/changelog.xml