Closed ettersi closed 1 year ago
Do we need to update the other language Gateways? And maybe update the Gateway spec?
Good question. Need to check the naming of the gateways from other languages.
@mchitre Any chance we can make a release with this change? ST needs this for Aquarius, and making a release is probably the cleanest way to ship this code to them.
Yes, let me try to do that sometime today
Released fjage-1.12.1
Do we need to update the other language Gateways? And maybe update the Gateway spec?
JS, Python and Julia gateways are fine. I've fixed the C gateway in https://github.com/org-arl/fjage/pull/295.
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
).