Skip to content

Comments

Fix subscribe ok#615

Merged
RichLogan merged 3 commits intomainfrom
fix-subscribe-ok
Jul 25, 2025
Merged

Fix subscribe ok#615
RichLogan merged 3 commits intomainfrom
fix-subscribe-ok

Conversation

@RichLogan
Copy link
Contributor

@RichLogan RichLogan commented Jul 24, 2025

Fix bug in SUBSCRIBE_OK message construction, where content exists having a value of 0 would result in a location of {0, 0} being encoded, rather than no location at all. I have changed the API so that the type system stops a bad combo of arguments.

However, I think this is a good example of how something like #607 would allow us to encode these rules that aren't otherwise parsed from the spec and catch them as early as possible in deserialize, and also as a last chance check on serialize.

Some known message vectors would also be great test suite addition - and probably a good addition as a draft appendix?

@RichLogan RichLogan requested review from GhostofCookie, TimEvens and suhasHere and removed request for GhostofCookie July 24, 2025 11:17
Copy link
Collaborator

@TimEvens TimEvens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RichLogan RichLogan merged commit b750053 into main Jul 25, 2025
4 checks passed
@RichLogan RichLogan deleted the fix-subscribe-ok branch July 25, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants