moq-srt: size the export delay from the negotiated TSBPD latency

Abierto
#10,342 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Read Play::accept, Client::publish, and the ts::Options::latency setup; check how the connection exposes negotiated send latency after the SRT fork change lands. Add an end-to-end test where the caller requests higher latency than the server, and verify the export delay follows the negotiated value while keeping the one-second floor. The issue is blocked on PR #10185, so confirm that dependency has landed before starting.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

quest

Problem

A Play and a dial-out Client::publish set the MPEG-TS export delay from the locally configured Config::latency, not from the TSBPD latency the handshake settled on. A caller that asks for a longer receive latency than the server's gets a delay shorter than the buffer it actually runs.

Found on https://github.com/moq-dev/moq/pull/10185 (the SRT fork). Its driver exposes the negotiated latencies on the connection and logs them on accept, but egress still reads the configured value, as it did when srt-tokio hid them. TSBPD negotiates each direction to the larger of the two sides' requests, so the delay only grows, and only for a peer that asked for more.

Plan

  • Pass the connection's negotiated send latency into ts::Options::latency in Play::accept and Client::publish, keeping the one-second floor. Drop Pending::latency and Client::latency if nothing else reads them.
  • Test it end to end: a caller requests a longer latency than the server, and the export's delay follows the caller.

Behaviour: a play's delay grows for a peer that negotiates a longer latency. Public API: none. Wire: none.

Blocked on https://github.com/moq-dev/moq/pull/10185 landing.

(Written by Claude Opus 5.5)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
822

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.