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

Decode fails when interest id flag is set #392

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

Mallets
Copy link
Member

@Mallets Mallets commented Mar 28, 2024

eclipse-zenoh/zenoh#870 adds an interest id in the declare message to disambiguate wether the declaration is sent in a response of a declare interest with future == false or not.

However, zenoh-pico never sends an interest with future == false, so the interest id should never be set. If set, it means the protocol is misbehaving. Therefore, we return an error during decoding.

@eclipse-zenoh-bot
Copy link

@Mallets If this pull request contains a bugfix or a new feature, then please consider using Closes #ISSUE-NUMBER syntax to link it to an issue.

@Mallets
Copy link
Member Author

Mallets commented Mar 28, 2024

@jean-roland can you help reviewing this?

@Mallets Mallets merged commit 084b087 into protocol_changes Mar 28, 2024
55 of 96 checks passed
@Mallets Mallets deleted the protocol_interest branch March 28, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants