tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r557822 - /tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java
Date Fri, 20 Jul 2007 00:21:25 GMT
Author: fhanik
Date: Thu Jul 19 17:21:23 2007
New Revision: 557822

URL: http://svn.apache.org/viewvc?view=rev&rev=557822
Log:
forward port from 6.0

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java?view=diff&rev=557822&r1=557821&r2=557822
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardWrapperValve.java Thu Jul 19 17:21:23
2007
@@ -55,7 +55,7 @@
 
 
     // Some JMX statistics. This vavle is associated with a StandardWrapper.
-    // We exponse the StandardWrapper as JMX ( j2eeType=Servlet ). The fields
+    // We expose the StandardWrapper as JMX ( j2eeType=Servlet ). The fields
     // are here for performance.
     private volatile long processingTime;
     private volatile long maxTime;
@@ -162,9 +162,10 @@
         if (servlet instanceof CometProcessor 
                 && request.getAttribute("org.apache.tomcat.comet.support") == Boolean.TRUE)
{
             comet = true;
+            request.setComet(true);
         }
         
-        // Acknowlege the request
+        // Acknowledge the request
         try {
             response.sendAcknowledgement();
         } catch (IOException e) {
@@ -195,6 +196,8 @@
             ApplicationFilterFactory.getInstance();
         ApplicationFilterChain filterChain =
             factory.createFilterChain(request, wrapper, servlet);
+        // Reset comet flag value after creating the filter chain
+        request.setComet(false);
 
         // Call the filter chain for this request
         // NOTE: This also calls the servlet's service() method



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


Mime
View raw message