Skip to content

relay: gate bidi NAMESPACE forward on negotiated draft >=16#406

Merged
afrind merged 2 commits into
mainfrom
fix/v14-namespace
Jun 16, 2026
Merged

relay: gate bidi NAMESPACE forward on negotiated draft >=16#406
afrind merged 2 commits into
mainfrom
fix/v14-namespace

Conversation

@afrind

@afrind afrind commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

doPublishNamespace chose the draft-16+ bidi NAMESPACE path versus the draft <=15 separate-stream PUBLISH_NAMESPACE path by testing whether the publish handle was present. The relay session populates that handle regardless of negotiated version, so a draft <=15 subscriber was routed into NamespacePublishHandle::namespaceMsg, which reaches an unimplemented moxygen SubNSReply stub (XLOG(FATAL)) and aborts the relay. Gate on the negotiated version instead, matching doPublishNamespaceDone.

Extend the existing SubNs tests to pass a non-null publish handle (as the relay session always does): ExactNamespaceSubscriberReceivesPublishNamespace now asserts a pre-v16 subscriber forwards via the separate stream and never the bidi handle (failing against the un-gated code), and EmptyPrefixAllowedV16 asserts a v16 subscriber forwards via the bidi handle.


This change is Reviewable

afrind and others added 2 commits June 15, 2026 12:59
moxygen added draft-18 to kSupportedVersions, but neither moxygen nor
moqx interoperate with it yet. An unset moqt_versions resolved to "",
which getMoqtProtocols expands to all supported versions, silently
advertising draft-18. Default to "14,16" instead; opt into draft-18
by configuring moqt_versions explicitly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
doPublishNamespace chose the draft-16+ bidi NAMESPACE path versus the
draft <=15 separate-stream PUBLISH_NAMESPACE path by testing whether the
publish handle was present. The relay session populates that handle
regardless of negotiated version, so a draft <=15 subscriber was routed
into NamespacePublishHandle::namespaceMsg, which reaches an unimplemented
moxygen SubNSReply stub (XLOG(FATAL)) and aborts the relay. Gate on the
negotiated version instead, matching doPublishNamespaceDone.

Extend the existing SubNs tests to pass a non-null publish handle (as the
relay session always does): ExactNamespaceSubscriberReceivesPublishNamespace
now asserts a pre-v16 subscriber forwards via the separate stream and never
the bidi handle (failing against the un-gated code), and EmptyPrefixAllowedV16
asserts a v16 subscriber forwards via the bidi handle.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@gmarzot gmarzot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmarzot reviewed 4 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on afrind).

Base automatically changed from exclude-draft18-default to main June 16, 2026 14:02
@afrind afrind merged commit 1d7620c into main Jun 16, 2026
15 of 16 checks passed
@afrind afrind deleted the fix/v14-namespace branch June 16, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants