moq-srt: size the export delay from the negotiated TSBPD latency
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
- Domain
- audio-video-rtc, backend
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
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::latencyinPlay::acceptandClient::publish, keeping the one-second floor. DropPending::latencyandClient::latencyif 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moq-dev/moq
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
moq-dev/moq#10463 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
moq-dev/moq#10460 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
moq-dev/moq#10373 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
moq-dev/moq#10336 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainers usually reply within 1 day
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zizmorcore/zizmor#2608 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
longbridge/nsh#4201 ·
Maintainers usually reply within 1 day