tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1133177 - /tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java
Date Tue, 07 Jun 2011 22:14:52 GMT
Author: markt
Date: Tue Jun  7 22:14:52 2011
New Revision: 1133177

URL: http://svn.apache.org/viewvc?rev=1133177&view=rev
Log:
Enable for async requests
Only look for a change on non-async requests. There will always be one of these before any
async processing on a request so no need to check if the current request is in the middle
of async processing

Modified:
    tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java?rev=1133177&r1=1133176&r2=1133177&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java Tue Jun  7 22:14:52
2011
@@ -102,7 +102,7 @@ public class JvmRouteBinderValve extends
 
     //------------------------------------------------------ Constructor
     public JvmRouteBinderValve() {
-        super(false);
+        super(true);
     }
 
     /*--Instance Variables--------------------------------------*/
@@ -199,9 +199,10 @@ public class JvmRouteBinderValve extends
     public void invoke(Request request, Response response) throws IOException,
             ServletException {
 
-         if (getEnabled() 
-             && request.getContext() != null
-             && request.getContext().getDistributable() ) {
+         if (getEnabled() &&
+                 request.getContext() != null &&
+                 request.getContext().getDistributable() &&
+                 !request.isAsyncDispatching()) {
              // valve cluster can access manager - other cluster handle turnover 
              // at host level - hopefully!
              Manager manager = request.getContext().getManager();



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


Mime
View raw message