Skip to content

Commit

Permalink
Looping back unicast messages with a shared transport (https://issues…
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed May 30, 2012
1 parent 30d8074 commit 8b675b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/org/jgroups/protocols/TP.java
Expand Up @@ -1091,13 +1091,12 @@ public Object down(Event evt) {
}

final boolean multicast=dest == null;
if(loopback && (multicast || (dest.equals(msg.getSrc()) && dest.equals(local_addr)))) {
if(loopback && (multicast || dest.equals(msg.getSrc()))) {

// we *have* to make a copy, or else up_prot.up() might remove headers from msg which will then *not*
// be available for marshalling further down (when sending the message)
final Message copy=msg.copy();
if(log.isTraceEnabled()) log.trace(new StringBuilder("looping back message ").append(copy));
// up_prot.up(new Event(Event.MSG, copy));
if(log.isTraceEnabled()) log.trace("looping back message " + copy);

// changed to fix http://jira.jboss.com/jira/browse/JGRP-506
Executor pool=msg.isFlagSet(Message.OOB)? oob_thread_pool : thread_pool;
Expand Down

0 comments on commit 8b675b8

Please sign in to comment.