Offer no WebTransport subprotocol when requesting draft-14 - #6
Merged
Merged
Conversation
Previously webtransport_protocol_offer returned a two-token list
("moq-00", "moqt-16") for --draft 14 and ("moqt-16", "moq-00") for
--draft 16. The secondary token was a fallback intended to help
negotiation succeed when the server did not advertise the primary
token, but WebTransport subprotocol selection is at the server's
discretion: when both tokens overlapped with the server's advertised
set, the server could legitimately pick the "wrong" one for the draft
the client was about to speak.
In practice relays that advertise only moqt-16/moqt-15 picked
moqt-16 from moqxr's --draft 14 offer, completed the WebTransport
handshake, and then rejected the draft-14 CLIENT_SETUP bytes
(version 0xff00000e) as a control-stream parse error because the
negotiated subprotocol implied draft-16.
Draft-16 now offers only "moqt-16", which matches the versioned-token
convention introduced in draft-15+.
Draft-14 predates the versioned-token convention and is the legacy
"moq-00" subprotocol. Some deployments accept "moq-00" as a WebTransport
subprotocol; others do not and only accept an empty subprotocol offer,
falling back to determining the version from CLIENT_SETUP/SERVER_SETUP.
Offering no subprotocol is the broadest interoperable path for
draft-14 over WebTransport and is the draft-14-over-WT handshake
documented by Akamai's probe tool. Verified end-to-end against a
draft-14-capable relay.
mondain
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously webtransport_protocol_offer returned a two-token list ("moq-00", "moqt-16") for --draft 14 and ("moqt-16", "moq-00") for --draft 16. The secondary token was a fallback intended to help negotiation succeed when the server did not advertise the primary token, but WebTransport subprotocol selection is at the server's discretion: when both tokens overlapped with the server's advertised set, the server could legitimately pick the "wrong" one for the draft the client was about to speak.
In practice relays that advertise only moqt-16/moqt-15 picked moqt-16 from moqxr's --draft 14 offer, completed the WebTransport handshake, and then rejected the draft-14 CLIENT_SETUP bytes (version 0xff00000e) as a control-stream parse error because the negotiated subprotocol implied draft-16.
Draft-16 now offers only "moqt-16", which matches the versioned-token convention introduced in draft-15+.
Draft-14 predates the versioned-token convention and is the legacy "moq-00" subprotocol. Some deployments accept "moq-00" as a WebTransport subprotocol; others do not and only accept an empty subprotocol offer, falling back to determining the version from CLIENT_SETUP/SERVER_SETUP. Offering no subprotocol is the broadest interoperable path for draft-14 over WebTransport and is the draft-14-over-WT handshake documented by Akamai's probe tool. Verified end-to-end against a draft-14-capable relay.