Skip to content

Decode fails when interest id flag is set#392

Merged
Mallets merged 1 commit intoprotocol_changesfrom
protocol_interest
Mar 28, 2024
Merged

Decode fails when interest id flag is set#392
Mallets merged 1 commit intoprotocol_changesfrom
protocol_interest

Conversation

@Mallets
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
Copy Markdown
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
@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