Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Consider a setup where a Java
Gateway
is connected to a master container with a UnetWormhole
agent running in it. In this scenario, the gateway will currently not receive any messages addressed to it.The technical reasons behind this are as follows.
Gateway@<number>
, i.e. it looks just like an agent that is wormholed to the master container.wantsMessagesFor
to the master container. Therefore, it receives all the messages that aren't claimed on the master container, but it also receives only those.<name>@<number>
, and the master container doesn't know that the gateway would like to receive messages addressed toGateway@<number>
.This PR fixes both of these aspects.
Gateway
s do send awantsMessagesFor
on startup.Gateway@(\d+)
toGateway-(\d+)
to avoid confusion with wormholed agents.Strictly speaking, either change would have been enough on its own, but there's no reason not to fix both for extra robustness (and performance in the case of the
wantsMessagesFor
).