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

[Bug] Avoid two Zenoh entities to open the same serial device #300

Open
cguimaraes opened this issue Aug 12, 2022 · 0 comments
Open

[Bug] Avoid two Zenoh entities to open the same serial device #300

cguimaraes opened this issue Aug 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@cguimaraes
Copy link
Member

Describe the bug

Two Zenoh entities running in the same machine (e.g., a zenohd and a zenoh peer subscriber) might try to open the same serial device if it is advertised in during the scouting procedure.

As short-term solution, Zenoh must flag the serial device with exclusive usage.
Currently, Z-Serial is setting it as false.
https://github.com/ZettaScaleLabs/z-serial/blob/master/src/lib.rs#L203

As long-term solution, we should think on how to advertise serial links in the scouting procedure, since currently the locator as only local meaning.

To reproduce

  1. Compile zenohd with serial support
  2. Start zenohd with a serial locator
  3. Start a zenoh peer subscriber

System info

@cguimaraes cguimaraes added the bug Something isn't working label Aug 12, 2022
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