From: markt Date: Tue, 7 Jun 2011 23:37:29 +0000 (+0000) Subject: Enable for async requests. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=20188bc32e8d48e718d9d6d971ab8a8a5e64fe30;p=tomcat7.0 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 --- 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;