Skip to content

Set TrackAlias in SUBSCRIBE_OK (draft-13 fix)#266

Open
paulharter wants to merge 1 commit intomengelbart:mainfrom
paulharter:fix/subscribe-ok-track-alias
Open

Set TrackAlias in SUBSCRIBE_OK (draft-13 fix)#266
paulharter wants to merge 1 commit intomengelbart:mainfrom
paulharter:fix/subscribe-ok-track-alias

Conversation

@paulharter
Copy link
Copy Markdown

Summary

The draft-13 message format update (92fd720) moved TrackAlias assignment from the subscriber (in SUBSCRIBE) to the publisher (in SUBSCRIBE_OK). The localTrack correctly receives a publisher-assigned alias via s.trackAliases.next(), but acceptSubscriptionWithOptions did not copy lt.trackAlias into the outgoing SubscribeOkMessage. This left TrackAlias at its zero value (0) for every SUBSCRIBE_OK, preventing subscribers from correctly dispatching incoming datagrams by alias.

Change

One line in session.go: use the localTrack returned by confirm() and set TrackAlias: lt.trackAlias in the SubscribeOkMessage.

Test plan

  • All existing tests pass (go test ./...)
  • Verified end-to-end with a QUIC client subscribing to 3 tracks: SUBSCRIBE_OK now returns unique aliases (0, 1, 2) instead of all zeros

The draft-13 message format update (92fd720) moved TrackAlias
assignment from the subscriber (in SUBSCRIBE) to the publisher
(in SUBSCRIBE_OK). The localTrack correctly receives a
publisher-assigned alias via s.trackAliases.next(), but
acceptSubscriptionWithOptions did not copy lt.trackAlias into the
outgoing SubscribeOkMessage. This left TrackAlias at its zero value
for every SUBSCRIBE_OK, preventing subscribers from correctly
dispatching incoming datagrams by alias.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant