Improve sending an access message in DeltaManager.
authorkfujino <kfujino@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 21 Oct 2010 10:15:26 +0000 (10:15 +0000)
committerkfujino <kfujino@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 21 Oct 2010 10:15:26 +0000 (10:15 +0000)
maxInactiveInterval of not Manager but the session is used.
If maxInactiveInterval is negative, an access message is not sending.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1025924 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/ha/session/DeltaManager.java
webapps/docs/changelog.xml

index 820594e..7e4d278 100644 (file)
@@ -1078,7 +1078,8 @@ public class DeltaManager extends ClusterManagerBase{
             //check to see if we need to send out an access message
             if (!expires && (msg == null)) {
                 long replDelta = System.currentTimeMillis() - session.getLastTimeReplicated();
-                if (replDelta > (getMaxInactiveInterval() * 1000)) {
+                if (session.getMaxInactiveInterval() >=0 && 
+                        replDelta > (session.getMaxInactiveInterval() * 1000)) {
                     counterSend_EVT_SESSION_ACCESSED++;
                     msg = new SessionMessageImpl(getName(),
                                                  SessionMessage.EVT_SESSION_ACCESSED, 
index 66228d5..cf4fd81 100644 (file)
       <fix>
         Add support for maxActiveSessions attributes to BackupManager. (kfujino)
       </fix>
+      <fix>
+        Improve sending an access message in DeltaManager.
+        maxInactiveInterval of not Manager but the session is used. 
+        If maxInactiveInterval is negative, an access message is not sending. 
+        (kfujino)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Web applications">