tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r563534 - /tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
Date Tue, 07 Aug 2007 15:48:09 GMT
Author: fhanik
Date: Tue Aug  7 08:48:08 2007
New Revision: 563534

URL: http://svn.apache.org/viewvc?view=rev&rev=563534
Log:
Don't send out if there are no members

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?view=diff&rev=563534&r1=563533&r2=563534
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java Tue Aug  7 08:48:08
2007
@@ -832,7 +832,10 @@
                 } else
                     log.error("Unable to send message to local member " + msg);
             } else {
-                channel.send(channel.getMembers(),msg,channelSendOptions);
+                if (channel.getMembers().length>0)
+                    channel.send(channel.getMembers(),msg,channelSendOptions);
+                else if (log.isDebugEnabled()) 
+                    log.debug("No members in cluster, ignoring message:"+msg);
             }
         } catch (Exception x) {
             log.error("Unable to send message through cluster sender.", x);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message