Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions quest/m1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ moves what remains of them once their claims merge.
- [A padded TS export sheds when its sink falls behind](/quest/m1/ts-padded-shed.md) - a `--mux-rate` export skips stale slots with a flagged PCR jump instead of back-filling them or blaming the source
- [A resumed QUIC client gives up on its own idle timer](/quest/m1/quic-resume-idle.md) - a client stopped past its idle timeout closes within about one timeout of resuming, without waiting on a stateless reset
- [A reused moq-transport alias delivers a group that beats its SUBSCRIBE_OK](/quest/m1/ietf-alias-reuse.md) - a new SUBSCRIBE clears its track's alias tombstone, so moqxr's alias-0 catalog refetch no longer hangs
- [A reused moq-transport alias refuses its track at once](/quest/m1/ietf-alias-refuse.md) - a SUBSCRIBE_OK on an alias already bound fails its readers and removes its entry without waiting on the peer's FIN acknowledgement
- [Unused crates, scripts, and files are deleted](/quest/m1/unused-code.md) - moq-room, the moq-native tombstone, demo/throttle, sh/dart/publish.sh, demo/web's Solid deps, and unpublished packages' release notes go
- [The recurring audits are fewer and carry plans, not results](/quest/m1/audit-merge.md) - m3's 13 audits become about five, each a Goal plus a short check-first list
- [The CARLA bridge builds outside the root workspace](/quest/m1/carla-workspace.md) - workspace builds stop compiling the demo bridge
Expand Down
32 changes: 32 additions & 0 deletions quest/m1/ietf-alias-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# [S] A reused moq-transport alias refuses its track at once

## Goal

When a moq-transport publisher answers a SUBSCRIBE with a track alias that
is already bound, the subscription's readers fail and its track entry is
removed immediately, as every other refusal path does. A peer that never
acknowledges the cancelling stream's FIN can no longer leave readers waiting
on a dead copy or keep a `TrackState` entry registered.

## Plan

Planned 2026-11-10 (maintainer, /quest-complete follow-up of
[moq-dev/moq#8402](https://github.com/moq-dev/moq/pull/8402), from a
CodeRabbit finding declined there because `main` already behaves this way).
Milestone: ✅ m1 (rejected: m2, dropping it), since a misbehaving peer can
hold state unboundedly.

In `rs/moq-net/src/ietf/subscriber.rs`, when `register_alias` fails after
the SUBSCRIBE_OK is accepted, the subscription moves to `OnceStep::Unbound`
and only aborts the track and removes the entry after the peer acknowledges
the FIN. The property-refusal and error branches just above it already
refuse first and then return `OnceStep::Refuse`. Do the same here: reject
the pending readers, remove the subscription and entry, abort the track,
return `OnceStep::Refuse`, and delete `OnceStep::Unbound`. Cover it with a
test whose peer never acknowledges the FIN.

Public API: none. Wire: none.

## Related

- [A reused moq-transport alias delivers a group that beats its SUBSCRIBE_OK](/quest/m1/ietf-alias-reuse.md) - the same alias table, for a reused alias on the same track