Fxi https://issues.apache.org/bugzilla/show_bug.cgi?id=49127
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 Jul 2010 21:39:40 +0000 (21:39 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 Jul 2010 21:39:40 +0000 (21:39 +0000)
Don't swallow exceptions unnecessarily

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

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

index d3951a3..241cd87 100644 (file)
@@ -520,7 +520,7 @@ public class SimpleTcpReplicationManager extends StandardManager implements Clus
                 do {
                     try {
                         Thread.sleep(100);
-                    }catch ( Exception sleep) {}
+                    } catch (InterruptedException sleep) { /* Ignore */ }
                     reqNow = System.currentTimeMillis();
                     isTimeout=((reqNow-reqStart)>(1000*60));
                 } while ( (!isStateTransferred()) && (!isTimeout));
index fb337fe..ca701f7 100644 (file)
   <subsection name="Cluster">
     <changelog>
       <fix>
+        <bug>49127</bug>: Don't swallow exceptions unnecessarily in
+        <code>SimpleTcpReplicationManager.startInternal()</code>. (markt)
+      </fix>
+      <fix>
         <bug>49445</bug>: When session ID is changed after authentication,
         ensure the DeltaManager replicates the change in ID to the other nodes
         in the cluster. (kfujino)