Skip to content

Commit

Permalink
Merge pull request #841 from cfredri4/fix-infinite-loop-in-tcp-use_acks
Browse files Browse the repository at this point in the history
JGRP-2838 Fix infinite loop in TCP when using use_acks
  • Loading branch information
belaban authored Oct 1, 2024
2 parents 97e0425 + 53d1e5d commit 0154970
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 0154970

Please sign in to comment.