eclipse-zenoh / zenoh

zenoh unifies data in motion, data in-use, data at rest and computations. It carefully blends traditional pub/sub with geo-distributed storages, queries and computations, while retaining a level of time and space efficiency that is well beyond any of the mainstream stacks.
https://zenoh.io
Other
1.45k stars 156 forks source link

Cannot enable 'outgoing' multilink without 'incoming' multilink #1533

Open fuzzypixelz opened 4 days ago

fuzzypixelz commented 4 days ago

In order for a peer to establish multiple links to a router, it needs to set transport/unicast/multilink to a value > 1. This means that said peer would also be accepting multiple links from other peers.

Thus there is no way to enable multilink for 'outgoing' connections without inadvertently doing so for 'incoming' connections.

A possible solution is configuring transport/unicast/multilink like so:

{
  "enabled": true,
  "max_incoming_links": 1,
  "max_outgoing_links": 10,
}

System info

Mallets commented 4 days ago

As far as I recall, no limitations are in place for outgoing links. So a peer can always open as many links it wants. The limit is on the incoming links.