Enable for async requests.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jun 2011 23:37:29 +0000 (23:37 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jun 2011 23:37:29 +0000 (23:37 +0000)
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

index e2fca4d..71bee61 100644 (file)
@@ -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;