From b22f36a430076fcad8ca5a58a088fda0c49964da Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 7 Jun 2011 23:43:31 +0000 Subject: [PATCH] Enable for async requests. 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/valves/SemaphoreValve.java b/java/org/apache/catalina/valves/SemaphoreValve.java index 0715da1e5..9d4f5da62 100644 --- a/java/org/apache/catalina/valves/SemaphoreValve.java +++ b/java/org/apache/catalina/valves/SemaphoreValve.java @@ -31,7 +31,9 @@ import org.apache.catalina.connector.Response; *

Implementation of a Valve that limits concurrency.

* *

This Valve may be attached to any Container, depending on the granularity - * of the concurrency control you wish to perform.

+ * 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.

* * @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 -- 2.11.0