moq-transcode polls for tracks by matching StreamError::NotFound

Aperta
#10,329 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start with broadcast::Consumer in moq-net and read AGENTS.md for the rule against matching on errors. The issue identifies polling loops in rs/moq-transcode/benches/ladder.rs:226 and nine locations in rs/moq-transcode/src/lib.rs; inspect how broadcasts and catalogs expose tracks. Done when callers can await a track or catalog appearing and those polling loops use that mechanism.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

moq-transcode polls for a track until it exists by matching Err(moq_net::Error::Stream(moq_net::StreamError::NotFound)) and yielding, against the "never match on errors" rule in AGENTS.md. It does this in rs/moq-transcode/benches/ladder.rs:226 and in nine tests in rs/moq-transcode/src/lib.rs (593, 883, 963, 1011, 1068, 1125, 1187, 1258, 1397).

The loop also busy-yields until the transcoder publishes its catalog. Learning a track exists should come through MoQ, so moq-net needs a way to await a broadcast's track (or its catalog) appearing, such as a future on broadcast::Consumer that resolves once the producer creates the track. Then these loops can await it instead.

Found while porting the bench to swole in moq-dev/moq#9854.

(Written by Claude Opus 5.5 with high)

Lingua principale
Rust
Stelle
1.6k
Fork
251
Merge medio
10h 10m
PR unite (30g)
832

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di moq-dev/moq

Tutte le issue di moq-dev/moq

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.