From 8ab27f34f6f2f3382baa2957f939ca22dcbf0ce5 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 7 Jun 2011 22:14:52 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1133177 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/ha/session/JvmRouteBinderValve.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java b/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java index 96aa7b410..6fe243ed6 100644 --- a/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java +++ b/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java @@ -102,7 +102,7 @@ public class JvmRouteBinderValve extends ValveBase implements ClusterValve { //------------------------------------------------------ Constructor public JvmRouteBinderValve() { - super(false); + super(true); } /*--Instance Variables--------------------------------------*/ @@ -199,9 +199,10 @@ public class JvmRouteBinderValve extends ValveBase implements ClusterValve { 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(); -- 2.11.0