Permalink
Browse files

- Set discard_incompatible_packets to true by default

- Discarding packets from different version in TCPConnectionMap (https://issues.jboss.org/browse/JGRP-1464)
  • Loading branch information...
1 parent a81223f commit 7e1c7b2d37712c339322e0a8054eb84d2fc6639e @belaban committed May 16, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/org/jgroups/protocols/UDP.java
@@ -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 {

0 comments on commit 7e1c7b2

Please sign in to comment.