clarify name
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 22:44:35 +0000 (22:44 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 22:44:35 +0000 (22:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801827 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/Request.java
java/org/apache/catalina/core/ApplicationDispatcher.java

index 46458db..847d6f2 100644 (file)
@@ -849,7 +849,7 @@ public class Request
         }
         
         if (name.equals(Globals.ASYNC_SUPPORTED_ATTR)) {
-            return isAsyncSupported();
+            return asyncSupported;
         }
 
         Object attr=attributes.get(name);
index 6d6e4f5..2346f8c 100644 (file)
@@ -641,7 +641,7 @@ final class ApplicationDispatcher
         ApplicationFilterChain filterChain = factory.createFilterChain(request,
                                                                 wrapper,servlet);
         
-        Object asyncSupported = request.getAttribute(Globals.ASYNC_SUPPORTED_ATTR);
+        Object origAsyncSupported = request.getAttribute(Globals.ASYNC_SUPPORTED_ATTR);
         //we have a new filter chain, setup isAsyncSupported here
         boolean filterAsyncSupported = filterChain.isAsyncSupported();
         if (!filterAsyncSupported && request.isAsyncSupported()) {
@@ -705,7 +705,7 @@ final class ApplicationDispatcher
                              wrapper.getName()), e);
             runtimeException = e;
         } finally {
-            request.setAttribute(Globals.ASYNC_SUPPORTED_ATTR, asyncSupported);
+            request.setAttribute(Globals.ASYNC_SUPPORTED_ATTR, origAsyncSupported);
         }
 
         // Release the filter chain (if any) for this request