tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1133199 - /tomcat/trunk/java/org/apache/catalina/valves/SemaphoreValve.java
Date Tue, 07 Jun 2011 23:43:31 GMT
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


Mime
View raw message