Skip to content

Add kAutoRequestID and resolveJoiningFetch helper#248

Open
afrind wants to merge 1 commit into
mainfrom
pr184
Open

Add kAutoRequestID and resolveJoiningFetch helper#248
afrind wants to merge 1 commit into
mainfrom
pr184

Conversation

@afrind
Copy link
Copy Markdown
Collaborator

@afrind afrind commented Jun 1, 2026

kAutoRequestID is a sentinel RequestID (max uint64) that callers can pass in a JoiningFetch to let the session find the matching subscribe by track name rather than requiring the caller to track the request ID manually.

resolveJoiningFetch handles both the auto case (searches pendingRequests_ and subTracks_ by FullTrackName, writes back the resolved ID) and the explicit case (existing lookup + validation), replacing the inline block in MoQSession::fetch with a single call.


This change is Reviewable

kAutoRequestID is a sentinel RequestID (max uint64) that callers can pass
in a JoiningFetch to let the session find the matching subscribe by track
name rather than requiring the caller to track the request ID manually.

resolveJoiningFetch handles both the auto case (searches pendingRequests_
and subTracks_ by FullTrackName, writes back the resolved ID) and the
explicit case (existing lookup + validation), replacing the inline block
in MoQSession::fetch with a single call.

Co-Authored-By: Claude Sonnet 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