You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/06/08 01:43:31 UTC

svn commit: r1133199 - /tomcat/trunk/java/org/apache/catalina/valves/SemaphoreValve.java

Author: markt
Date: Tue Jun  7 23:43:31 2011
New Revision: 1133199

URL: http://svn.apache.org/viewvc?rev=1133199&view=rev
Log:
Enable for async requests.
Async requests should appear as serial requests when requiring multiple internal requests so concurrency should behave as expected.

Modified:
    tomcat/trunk/java/org/apache/catalina/valves/SemaphoreValve.java

Modified: tomcat/trunk/java/org/apache/catalina/valves/SemaphoreValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/SemaphoreValve.java?rev=1133199&r1=1133198&r2=1133199&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/SemaphoreValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/valves/SemaphoreValve.java Tue Jun  7 23:43:31 2011
@@ -31,7 +31,9 @@ import org.apache.catalina.connector.Res
  * <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 Valv
 
     //------------------------------------------------------ Constructor
     public SemaphoreValve() {
-        super(false); //TODO - is this async aware
+        super(true);
     }
 
     // ----------------------------------------------------- Instance Variables



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org