Skip to content

Commit f37549b

Browse files
committed
UDP: setting the interface of mcast_sock again on send failure (https://issues.jboss.org/browse/JGRP-1804)
1 parent 4393310 commit f37549b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/org/jgroups/protocols/UDP.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ protected void _send(InetAddress dest, int port, boolean mcast, byte[] data, int
201201
catch(NoRouteToHostException e) {
202202
mcast_sock.setInterface(mcast_sock.getInterface());
203203
}
204+
catch(SocketException sock_ex) {
205+
}
206+
catch(IOException io_ex) { // https://issues.jboss.org/browse/JGRP-1804
207+
if(bind_addr != null)
208+
mcast_sock.setInterface(bind_addr);
209+
}
204210
}
205211
}
206212
else if(sock != null)

0 commit comments

Comments
 (0)