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

Open
#10,342 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

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.

Written by the indexing model from the issue text.

Description

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)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.