You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kf...@apache.org on 2015/09/07 07:59:18 UTC
svn commit: r1701547 -
/tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
Author: kfujino
Date: Mon Sep 7 05:59:18 2015
New Revision: 1701547
URL: http://svn.apache.org/r1701547
Log:
Fix a default clusterListeners in SimpleTcpCluster.
The optimal default value is different for each session manager.
ClusterSessionListener is never used in BackupManager.
Modified:
tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
Modified: tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java?rev=1701547&r1=1701546&r2=1701547&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java Mon Sep 7 05:59:18 2015
@@ -553,7 +553,7 @@ public class SimpleTcpCluster extends Li
}
protected void checkDefaults() {
- if ( clusterListeners.size() == 0 ) {
+ if ( clusterListeners.size() == 0 && managerTemplate instanceof DeltaManager ) {
addClusterListener(new ClusterSessionListener());
}
if ( valves.size() == 0 ) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org