From 20188bc32e8d48e718d9d6d971ab8a8a5e64fe30 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 7 Jun 2011 23:37:29 +0000 Subject: [PATCH] Enable for async requests. Depending on how async is used, may see multiple replication requests for a single async request. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1133197 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/ha/tcp/ReplicationValve.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/ha/tcp/ReplicationValve.java b/java/org/apache/catalina/ha/tcp/ReplicationValve.java index e2fca4d94..71bee6175 100644 --- a/java/org/apache/catalina/ha/tcp/ReplicationValve.java +++ b/java/org/apache/catalina/ha/tcp/ReplicationValve.java @@ -121,7 +121,7 @@ public class ReplicationValve // ------------------------------------------------------------- Properties public ReplicationValve() { - super(false); + super(true); } /** @@ -556,11 +556,13 @@ public class ReplicationValve } /** - * protocol cluster replications stats + * Protocol cluster replications stats * @param requestTime * @param clusterTime */ protected void updateStats(long requestTime, long clusterTime) { + // TODO: Async requests may trigger multiple replication requests. How, + // if at all, should the stats handle this? synchronized(this) { lastSendTime=System.currentTimeMillis(); totalSendTime+=lastSendTime - clusterTime; -- 2.11.0