Enable for async requests.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jun 2011 23:43:31 +0000 (23:43 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jun 2011 23:43:31 +0000 (23:43 +0000)
Async requests should appear as serial requests when requiring multiple internal requests so concurrency should behave as expected.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1133199 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/valves/SemaphoreValve.java

index 0715da1..9d4f5da 100644 (file)
@@ -31,7 +31,9 @@ import org.apache.catalina.connector.Response;
  * <p>Implementation of a Valve that limits concurrency.</p>
  *
  * <p>This Valve may be attached to any Container, depending on the granularity
- * of the concurrency control you wish to perform.</p>
+ * of the concurrency control you wish to perform. Note that internally, some
+ * async requests may require multiple serial requests to complete what - to the
+ * user - appears as a single request.</p>
  *
  * @author Remy Maucherat
  * @version $Id$
@@ -41,7 +43,7 @@ public class SemaphoreValve extends ValveBase {
 
     //------------------------------------------------------ Constructor
     public SemaphoreValve() {
-        super(false); //TODO - is this async aware
+        super(true);
     }
 
     // ----------------------------------------------------- Instance Variables