]
Bela Ban commented on JGRP-2010:
--------------------------------
When sending a message with an AnycastAddress, no copy is needed, either
RpcDispatcher/MessageDispatcher: don't copy the first anycast
-------------------------------------------------------------
Key: JGRP-2010
URL:
https://issues.jboss.org/browse/JGRP-2010
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Minor
Fix For: 3.6.8, 4.0
If we have an anycast to targets B,C,D, this will be sent as 3 unicasts: to A, to B and
to C. The original message is copied for each of the 3 target dests (only the headers are
copied, not the payload). The copy is needed to prevent protocols from changing the (same)
headers when the message is sent (or retransmitted).
As an optimization, we don't need to copy the *first* message; in the above example,
we need to copy only B and C.
For anycasts to single destination, we don't need to copy anything.