Skip to content

fix: validate duplicate track_alias in recv_subscribe_ok - #129

Open
mondain wants to merge 1 commit into
cloudflare:mainfrom
mondain:mondain/trackAlias
Open

fix: validate duplicate track_alias in recv_subscribe_ok#129
mondain wants to merge 1 commit into
cloudflare:mainfrom
mondain:mondain/trackAlias

Conversation

@mondain

@mondain mondain commented Jan 5, 2026

Copy link
Copy Markdown

Per draft-ietf-moq-transport-14, if a track_alias is already in use for a different subscription, the session must be closed with DUPLICATE_TRACK_ALIAS error (0x5).

Previously, the code would silently overwrite the existing track_alias mapping, which could cause streams/datagrams to be routed to the wrong subscription.

Now checks if the track_alias already exists in the alias map and returns SessionError::Duplicate if it maps to a different subscribe_id.

Per draft-ietf-moq-transport-14, if a track_alias is already in use for
a different subscription, the session must be closed with
DUPLICATE_TRACK_ALIAS error (0x5).

Previously, the code would silently overwrite the existing track_alias
mapping, which could cause streams/datagrams to be routed to the wrong
subscription.

Now checks if the track_alias already exists in the alias map and
returns SessionError::Duplicate if it maps to a different subscribe_id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant