Skip to content

Close the connection on the remaining per-role protocol errors - #352

Merged
kahrendt merged 1 commit into
mainfrom
fix/must-close-role-protocol-errors
Nov 5, 2026
Merged

kahrendt merged 1 commit into
mainfrom
fix/must-close-role-protocol-errors

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

Two role rules call a message a protocol error but only say the server SHOULD close the connection: a visualizer client/state that requests 'spectrum' without a spectrum object, and a source client-stream/start without a matching server start. Every other per-role protocol error requires closing.

This makes both a MUST. A client that follows the spec can't send either one, since the spectrum object is required and the source rules already tolerate a client-stream/start that crosses a stop, a role removal or an availability update. Keeping the connection open didn't help for the source case anyway, since the first audio chunk on a stream the server never opened already requires closing.

The artwork channels SHOULD close is left to #347, which removes it.

Related:

Breaking changes

Servers only: a server that kept the connection open on either message now closes it. Clients don't need to change.

@kahrendt kahrendt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@kahrendt
kahrendt merged commit 6f571b3 into main Nov 5, 2026
1 check passed
@kahrendt
kahrendt deleted the fix/must-close-role-protocol-errors branch November 5, 2026 17:38
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