Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

checking for multicast message

  • Loading branch information...
commit debe87575bf31ea85b1b7ae8a48a558e4bc7b566 1 parent dcba518
Bela Ban authored February 28, 2011

Showing 1 changed file with 11 additions and 3 deletions. Show diff stats Hide diff stats

  1. 14  src/org/jgroups/protocols/RELAY.java
14  src/org/jgroups/protocols/RELAY.java
@@ -153,14 +153,22 @@ public Object down(Event evt) {
153 153
             case Event.MSG:
154 154
                 Message msg=(Message)evt.getArg();
155 155
                 Address dest=msg.getDest();
156  
-                
  156
+                if(dest == null || dest.isMulticastAddress())
  157
+                    break; // don't handle multicast destinations
  158
+
157 159
                 // forward non local destinations to the coordinator, to relay to the remote cluster
158 160
                 if(remote_cache.contains(dest)) {  // the message is forwarded to the remote cluster
159 161
                     forwardToCoord(msg);
160 162
                     return null;
161 163
                 }
162  
-                else if(dest instanceof ProxyAddress) // the message is sent to the local cluster
163  
-                    msg.setDest(((ProxyAddress)dest).getOriginalAddress());
  164
+                else {
  165
+                    if(local_view.containsMember(dest)) {
  166
+                        break;
  167
+                    }
  168
+                    if(dest instanceof ProxyAddress) { // the message is sent to the local cluster
  169
+                        msg.setDest(((ProxyAddress)dest).getOriginalAddress());
  170
+                    }
  171
+                }
164 172
                 break;
165 173
 
166 174
             case Event.VIEW_CHANGE:

0 notes on commit debe875

Please sign in to comment.
Something went wrong with that request. Please try again.