Skip to content

Commit

Permalink
Update BaseServer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
cfredri4 committed Oct 1, 2024
1 parent 97e0425 commit 53d1e5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/jgroups/blocks/cs/BaseServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.io.DataInput;
import java.io.IOException;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.net.InetAddress;
import java.nio.ByteBuffer;
import java.util.*;
Expand Down Expand Up @@ -302,11 +303,12 @@ public Connection getConnection(Address dest, boolean retry) throws Exception {
try {
conn=getConnection(dest);
}
catch(ConnectException | SSLException ex) {
catch(ConnectException | SocketTimeoutException | SSLException ex) {
throw ex;
}
catch(Exception ise) {
Util.sleepRandom(1, 100);
log.trace("%s: retrying connection to %s", local_addr, dest);
}
}
while(!connected(conn));
Expand Down

0 comments on commit 53d1e5d

Please sign in to comment.