Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Oct 24, 2023
1 parent 8b5e280 commit 47aa236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/jgroups/blocks/cs/NioBaseServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ public void run() {
// a key can be connectable *and* readable (https://issues.redhat.com/browse/JGRP-2531)
if(key.isConnectable()) {
SocketChannel ch=(SocketChannel)key.channel();
if(ch.finishConnect() || ch.isConnected()) {
// https://issues.redhat.com/browse/JGRP-2727
if((ch.isConnectionPending() && ch.finishConnect()) || ch.isConnected()) {
conn.clearSelectionKey(SelectionKey.OP_CONNECT);
conn.connected(true);
}
Expand Down

0 comments on commit 47aa236

Please sign in to comment.