Commit edbfae31 authored by Erik Hugne's avatar Erik Hugne

zmq: change TIPC default lookup domain when connecting

By default, TIPC uses a closest first approach to find
a publication that can satisfy your connection request.
Any publication on the local node will automatically
be chosen for all requests, even if you're trying to
spread it out over multiple machines.
We fix this by widening the default lookup scope.
Signed-off-by: 's avatarErik Hugne <erik.hugne@ericsson.com>
parent 37004536
...@@ -60,6 +60,10 @@ int zmq::tipc_address_t::resolve (const char *name) ...@@ -60,6 +60,10 @@ int zmq::tipc_address_t::resolve (const char *name)
address.addrtype = TIPC_ADDR_NAME; address.addrtype = TIPC_ADDR_NAME;
address.addr.name.name.type = type; address.addr.name.name.type = type;
address.addr.name.name.instance = lower; address.addr.name.name.instance = lower;
/* Since we can't specify lookup domain when connecting
* (and we're not sure that we want it to be configurable)
* Change from 'closest first' approach, to search entire zone */
address.addr.name.domain = tipc_addr(1, 0, 0);
address.scope = 0; address.scope = 0;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment