tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r407586 - in /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership: McastService.java McastServiceImpl.java
Date Thu, 18 May 2006 16:36:45 GMT
Author: fhanik
Date: Thu May 18 09:36:45 2006
New Revision: 407586

URL: http://svn.apache.org/viewvc?rev=407586&view=rev
Log:
Moved sleep to where it belongs

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java?rev=407586&r1=407585&r2=407586&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
Thu May 18 09:36:45 2006
@@ -272,10 +272,7 @@
                                     this);
         
         impl.start(level);
-		long memberwait = (Long.parseLong(properties.getProperty("mcastFrequency"))*4);
-        if(log.isInfoEnabled())
-            log.info("Sleeping for "+memberwait+" milliseconds to establish cluster membership");
-        Thread.sleep(memberwait);
+		
 
     }
 

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java?rev=407586&r1=407585&r2=407586&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java
Thu May 18 09:36:45 2006
@@ -194,6 +194,10 @@
             receiver.setDaemon(true);
             receiver.start();
             valid = true;
+            long memberwait = sendFrequency*4;
+            if(log.isInfoEnabled())
+                log.info("Sleeping for "+memberwait+" milliseconds to establish cluster membership");
+            try {Thread.sleep(memberwait);}catch (InterruptedException ignore){}
         } 
         if ( (level & Channel.MBR_TX_SEQ)==Channel.MBR_TX_SEQ ) {
             if ( sender != null ) throw new IllegalStateException("McastService.send already
running.");



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


Mime
View raw message