Skip to content

Commit

Permalink
- Set discard_incompatible_packets to true by default
Browse files Browse the repository at this point in the history
- Discarding packets from different version in TCPConnectionMap (https://issues.jboss.org/browse/JGRP-1464)
  • Loading branch information
belaban committed May 16, 2012
1 parent a81223f commit 7e1c7b2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/org/jgroups/protocols/UDP.java
Expand Up @@ -359,12 +359,9 @@ protected void createSockets() throws Exception {
mcast_addr=new IpAddress(mcast_group_addr, mcast_port);

// check that we're not using the same mcast address and port as the diagnostics socket
if(enable_diagnostics) {
if(diagnostics_addr != null && diagnostics_addr.equals(mcast_group_addr) ||
diagnostics_port == mcast_port)
throw new IllegalArgumentException("diagnostics_addr / diagnostics_port and mcast_addr / mcast_port " +
"have to be different");
}
if(enable_diagnostics && diagnostics_addr.equals(mcast_group_addr) && diagnostics_port == mcast_port)
throw new IllegalArgumentException("diagnostics_addr:diagnostics_port and mcast_addr:mcast_port " +
"have to be different");

if(tos > 0) {
try {
Expand Down

0 comments on commit 7e1c7b2

Please sign in to comment.