Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated connections #1395

Open
fuzzypixelz opened this issue Sep 11, 2024 · 0 comments
Open

Duplicated connections #1395

fuzzypixelz opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fuzzypixelz
Copy link
Member

fuzzypixelz commented Sep 11, 2024

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 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

  1. 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
  2. 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

@fuzzypixelz fuzzypixelz added the bug Something isn't working label Sep 11, 2024
@fuzzypixelz fuzzypixelz changed the title Duplicated connections & violation of transport/unicast/max_links Duplicated connections Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant