You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Runtime obtains Endpoints through scouting and user configuration. It tries to connect to both kinds of Endpoints concurrently without coordination. This can lead to duplicated connections.
Moreover, more links are created to the same Transport session than transport/unicast/max_links.transport/unicast/max_links only affects the number of incoming links.
Locators obtained through scouting usually can have IP addresses (even if the listener is configured with a domain name), but Endpoints supplied in configuration can use domain names (e.g. "localhost"), this mismatch is another cause for connection duplication.
To reproduce
cargo run --bin zenohd -- --cfg 'transport/unicast/max_links:4' --cfg 'plugins_loading/enabled:false' -l 'tcp/localhost:9000' -l 'tcp/localhost:9001' --id a
Describe the bug
The Runtime obtains Endpoints through scouting and user configuration. It tries to connect to both kinds of Endpoints concurrently without coordination. This can lead to duplicated connections.
Moreover, more links are created to the same Transport session thantransport/unicast/max_links
.transport/unicast/max_links
only affects the number of incoming links.Locators obtained through scouting usually can have IP addresses (even if the listener is configured with a domain name), but Endpoints supplied in configuration can use domain names (e.g. "localhost"), this mismatch is another cause for connection duplication.
To reproduce
cargo run --bin zenohd -- --cfg 'transport/unicast/max_links:4' --cfg 'plugins_loading/enabled:false' -l 'tcp/localhost:9000' -l 'tcp/localhost:9001' --id a
cargo run --example z_get -- -s '@/*/session/transport/unicast/a/link/*' -e 'tcp/127.0.0.1:9 000' -e 'tcp/127.0.0.1:9001'
In my experiments, only one of the Endpoints is duplicated.
System info
The text was updated successfully, but these errors were encountered: