Repository navigation
WebTransport 1.5.0
WebTransport 1.5.0
Both libraries, one tag, one artifact each: WebTransport 1.5.0 ships the Swift package
and the portable C99 library built for Apple Silicon (arm64), with a .sha256 beside each
archive. This release carries the third audit pass's fixes — several of them wire-visible —
and two corrections to how the C99 tools negotiate flow control.
These notes are the changelog for this release. Each change is under the library it belongs
to, and the work that is genuinely one item for both is under Both.
Swift
Fixed:
- The Retry Integrity Tag is computed and verified (RFC 9001 section 5.8, WT-1). It was parsed and never checked, so a caller that treated
decodeas validation accepted a forged Retry.QUICRetryIntegrityTagholds the section's fixed key and nonce, verification goes throughAES.GCM.openso the comparison is the platform's constant-time authentication, and the verifying decode takes the original Destination Connection ID, which the tag authenticates but the packet never carries. Asserted against RFC 9001 appendix A.4's own extracted packet and tag, which caught a defect in the first version:computepassed an empty associated data value and so disagreed with the RFC whileverifyagreed with itself. - An unknown or reserved unidirectional stream type is ignored (RFC 9114 section 6.2, WT-244). The accept path and
readPeerControlStreamthrewunexpectedFramefor the reserved type0x21, naming an ignorable stream as the session's problem; they now drop a reserved or unknown type and continue waiting, while a malformed varint is still reported and a defined-but-unserved type (push) keeps its previous report. - An over-limit flow-control capsule on the CONNECT stream closes the session with
WT_FLOW_CONTROL_ERROR(draft-16 section 5.6.2, WT-245). The direct entry point did close; the CONNECT-stream entry point parsed the capsule first, so the parse error was thrown before the close path was reached and the local state stayedacceptedwhile the peer was toldH3_MESSAGE_ERROR. The failure now routes through the existingcloseForFlowControlViolation. - A duplicate control or QPACK stream raises
H3_STREAM_CREATION_ERROR, and critical-stream retention is bounded (RFC 9114 section 6.2.1, RFC 9204 section 4.2, WT-246 and WT-247). A duplicate was silently retained, and retention had no ceiling: the audit measuredretainCritical accepted=100000 retainedCount=100000againstenqueue accepted=16 refused=1584, and in a live session a peer's unidirectional-stream credit was never returned. Retention is now exactly one control, one encoder and one decoder stream, and a duplicate or unentitled type is refused through the existingHTTP3ConnectionError(.streamCreationError). acceptUnidirectionalStreamrecomputes its remaining budget before each await (WT-248). It computed the budget once per iteration and reused it across two awaits, so one iteration could wait twice its documented deadline. Both the audit and the fix record that the double wait is not reachable on this transport, because a unidirectional stream is delivered only once its first byte exists; the test is kept as a budget guard rather than a reproduction.QUICTransportParameters.validated()enforces RFC 9000 section 4.6's 2^60 cap oninitial_max_streams_bidiandinitial_max_streams_uni, the one section 18.2 rule it did not check (WT-250). Exactly 2^60 is accepted, because the rule refuses values greater than it.connectionTransportFailed(role:domain:code:)names the transport failure at the two queue boundaries (WT-197).InteroperableQUICConnectionQueue.dequeueandInteroperableQUICInboundStreamCollector.nextstill rethrew the framework's barePOSIXErrorCodeafter WT-185 translated it atwaitForReady; the measured error isNWError.posix(.ENOTCONN), which bridges to code 57. It is deliberately not the establishment case: both queues are used after establishment as well, and calling this an establishment failure would invite a caller to re-drive a session that may already have carried data. A caller's own error,CancellationErrorand the runtime's own cases pass through untouched, and the parked-waiter resume — a third escape path the row did not name — is closed too.InteroperableQUICConnectionQueueis generic over its element with areleaseclosure, so the boundary can be driven by a test without a live QUIC connection.- The PKCS#12 test fixture uses a container OpenSSL 3 accepts (WT-191). The old one was a LibreSSL 3.3.6 bundle using RC2-40-CBC, which OpenSSL 3.6.4 refuses outright; it is regenerated with PBES2/PBKDF2/AES-256-CBC and a SHA-256 MAC. The certificate DER, the RSA modulus and public key and the passphrase are unchanged, so the wrong-passphrase test still returns -25293. Recorded rather than smoothed over: the row's
OSStatus -26276does not reproduce on macOS 27.0, so the change is justified by the obsolete container and by OpenSSL 3 rejecting it, not by a reproduction.
Added:
QUICRetryIntegrityTag(key,nonce,compute(pseudoPacket:),verify(pseudoPacket:integrityTag:));QUICRetryPacket.encodedWithoutIntegrityTag()andintegrityPseudoPacket(originalDestinationConnectionID:retryPacketWithoutIntegrityTag:); andQUICRetryPacket.decode(_:originalDestinationConnectionID:integrityTagVerifier:), which returns a packet only when the tag validates. The unverified entry point now says in its documentation that it is not validation.WebTransportNetworkRuntimeError.connectionTransportFailed(role:domain:code:), which claims only what is true at both sites — the transport failed while the runtime was using the connection — and keeps the framework's domain and code for diagnosis.
Changed:
QUICLongHeaderPacket.decode's precondition is documented rather than implied: it reads the reserved bits and the packet-number length out of a header-protected first byte, so it is sound only for an already-unmasked header (WT-228). No public shape changed; the C99 library reports the condition to the authenticating caller instead (WT-167).- The session manager's eleven collection properties are
public internal(set) varrather thanpublic private(set) var, so its mutating core could move to four files without changing the type's copy semantics; the setter was never visible outside the module and still is not. The first attempt — aninternal final classstate holder behind computed get-only properties — was thrown away, because it preserved every declaration line but made two copies of the publicSendablestruct share one mutable store, which is a data race papered over with@unchecked Sendable. - The Swift-only part of the 1000-line refactor:
WebTransportInteroperableNetworkRuntime.swift(3639 lines) became the runtime plusWebTransportQUICConnectionAdmission.swiftandWebTransportQUICRuntimeSupport.swift;QUICCoreState.swift,DeterministicNetworkRuntimeSupport.swift,WebTransportCLIConformance.swift,LibrarySmokeClient/main.swiftandWebTransportProcessTests.swiftwere split on their own seams; and the session manager's mutating core becameWebTransportSessionLifecycle.swift,WebTransportSessionStreams.swift,WebTransportSessionFlowControl.swiftandWebTransportSessionDatagrams.swift. It is a move rather than a rewrite: the Swift suite is unchanged at 376 tests, 0 failures, and thepublic/opendeclaration multiset is identical. The ceiling itself and the splits that touched both libraries are under Both.
Checks: swift test under -warnings-as-errors -strict-concurrency=complete -require-explicit-sendable, plus ASan and TSan, the formatter over both manifests, the
API-compatibility consumer build, check-manifest-sync.sh, check-target-imports.sh and
check-version-sync.sh.
C99
Fixed:
- The public API applies the session-termination gates the machine walker already applied (WT-229, WT-230).
wt_session_on_capsuleaccepted a capsule after the session had closed — raising the peer's data limit with it — and accepted aWT_DRAIN_SESSIONcarrying a value, while the walker refused both on the same bytes (section 6; section 4.7 Figure 5 fixes Length at 0);wt_session_on_stream_opened,_on_stream_dataand_on_datagramstill delivered consumer callbacks after termination. Both now apply the gate before the lookup and before the callback. :schememust behttps(draft-16 section 3.2, WT-231). It was required to be present but never compared, so any scheme passed. The comparison is ASCII case-insensitive, soHTTPSstill passes, per RFC 3986 section 3.1.- The 2^60 ceiling on a Maximum Streams value is enforced on both sides (draft-16 sections 5.6.2 and 5.6.3, WT-232 and WT-233). The writers emitted 2^61 and the readers accepted it, leaving the session ESTABLISHED where the draft says an over-limit value MUST close it with
WT_FLOW_CONTROL_ERROR; one ceiling helper now covers both capsule families and both directions. - A NULL capsule value and an out-of-range status are refused (WT-234).
wt_webtransport_close_session_parsedereferenced NULL on a caller-filled capsule with a NULL value (ASan SEGV; not reachable through the shipped decoder, but a public entry point), and the response-status encoder accepted 5, 99, 600 and 999 — writing:status: 005, which its own decoder refuses — where RFC 9114 section 4.3.2 allows 100..599. SETTINGS_H3_DATAGRAMis boolean (RFC 9297 section 2.1.1, WT-236). The setter stored any value, so a peer that sent a value the RFC forbids got a session with datagrams enabled; the rule the file already applies toENABLE_CONNECT_PROTOCOLnow covers it.- An extended CONNECT requires
:schemeand:path(RFC 8441 section 4, WT-237). The check was "every request needs:scheme, every non-CONNECT needs:path", which refused a legal plain CONNECT (a latent defect the new test found) and accepted an extended CONNECT with no path; the exemption is now the plain CONNECT's alone. wt_quic_packet_keys_update(&keys, &keys)returns the old header protection key (RFC 9001 section 6.1, WT-238).wt_quic_derive_packet_keysmemsets and rewrites its output, so with the two arguments aliased the copy readhpback out of the object it had just written, and the caller could no longer unmask a packet from its peer. The function snapshotshpand its length before the derivation and zeroes the snapshot on both exits, and the header documents that aliasing is supported instead of leaving the caller to guess.wt_sha256_final(ctx, NULL)returnsWT_ERR_INVALID_ARGUMENT(WT-241) rather than dereferencing NULL inside libcrypto (ASan SEGV), like the ten sibling entry points in the same file.- The QPACK string-length and index sites keep a malformed prefixed integer apart from a truncated one (RFC 9204 section 4.1.1, WT-242). A value wider than 62 bits was collapsed into
WT_ERR_TRUNCATED, which tells the caller to wait for bytes that can never arrive, and a genuine short read at the index sites becameWT_ERR_PROTOCOL; each site now propagates the integer decoder's own answer. The test's first vectors were wrong — they used0x7fas a continuation byte, which clears the continuation bit, so they encoded the legal value 190 — and are0x80now. - A NULL field name is refused before any comparison. The Clang Static Analyzer on the Linux legs found
memcmp(field->name, name, 0)reachable with bothNULLand 0, which is undefined even though it compares nothing; this host's Apple clang does not carry that checker.name == NULLnow answers "not this field" first, which loses nothing because no field has an empty name: RFC 9110 section 5.1 makes a field name a non-empty token and the header validator refuses one. wt_quic_retry_packet_encoderefuses a NULL connection ID or token (WT-239), as the long-header encoder already did. Beside it, the Retry decoder's comment described a zero-length-token refusal the code does not implement (WT-240): the field isRetry Token (..), so this parser reports it and section 17.2.5.2's MUST stays with the client, whichon_retry_packetenforces.
Added:
wt_http3_message_field, which reads one named regular field out of a section the caller has already decoded and returnsWT_ERR_STATEwhen the section is well formed and simply does not carry it — absent and present-but-empty are different answers, and draft-16 section 3.2 turns on the difference (WT-235). The message layer validated regular fields and then discarded them, so no public-API consumer could apply the section's Origin rule at all. It deliberately does not decide which origins are acceptable: that is application policy, so the library exposes the value and the caller judges it. It is a new function rather than a field onwt_http3_message_tbecause the field version would be an ABI break covering only the one field this draft names; no public struct changed, soWT_ABI_VERSIONstays 1.
Changed:
- A received SETTINGS payload is validated (RFC 9114 section 7.2.4, WT-251). A SETTINGS frame carrying a duplicate identifier was accepted and delivered; it now meets the parser that already refused duplicates and enforced the section's value rules, which had only ever run on hand-built vectors and the fuzzers. The control machine reassembles the payload into a 512-byte fixed buffer that is reset when SETTINGS is accepted, overflow is reported as
H3_EXCESSIVE_LOADand is sticky for the rest of the frame, the driver's ownmax_frame_bytesis checked first, and every control-stream frame is routed throughwt_http3_endpoint_on_control_frame, which makes the section 6.2.1 and 7.2.4 frame-type rules reachable on the real receive path. Two limits the fix records rather than smooths over: a directwt_http3_driver_on_stream_bytescall on a stream the endpoint has not classified still returns OK, because framing cannot know it is the control stream until the0x00prefix is classified, and the duplicate rule is the paragraph in section 7.2.4, not 7.2.4.2. A second SETTINGS frame is a different rule (H3_FRAME_UNEXPECTED), which the library already applied and a new test now pins. - The CLI tools negotiate flow control and obey draft-16 section 5.1's ignore rule (WT-252). The library API already applied the rule; the tools applied the capsules unconditionally and advertised nothing, so every grant they acted on was one the draft says to drop. They now send the three settings —
WT_INITIAL_MAX_DATA = 100000andWT_INITIAL_MAX_STREAMS_BIDI/UNI = 8, taken from the samewt_runtime_session_advertise(&session, 100000, 4096, 8, 8)call they already made — learn the peer's by reassembling its SETTINGS payload, which the driver now delivers already validated, using the existing parser, and ignore every flow-control capsule unless both sides advertised. The fix is the complete one rather than the gate alone, because gating without advertising would have made the tools correct by making them useless. The new conformance scenariodraft16-a-flow-capsule-with-no-negotiation-is-ignoredtakes the suite to 55/55, and no existing expectation changed: the grant and refusal scenarios now negotiate on both sides rather than being inverted. - The C99-only part of the 1000-line refactor:
src/http3/driver.c(1343),src/tls/session.c(1175),tests/unit/test_http3_driver.c(1282) andapps/support/session_loop.c(1221) were split, with four private headers carrying what crosses a unit.C99/include/webtransport/is untouched, every CMake source list is explicit, and noadd_testname changed, so the sorted CTest name list is byte-identical. The split's one build defect was fixed rather than left: a redundant redeclaration ofside_on_frame, which Apple clang accepts and GCC and Linux clang refuse under-Wredundant-decls, failed five CI jobs, andcheck-windows-build.sh— which compiles and links the whole Windows tree under the project's-Werrorset — is now part of the verification sweep. - The interop matrix reproduces 7 of the 7 proofs again (WT-196). The 1.5.0 re-run on 17 September 2026 first reproduced five:
erlang-webtransportreportedstatus=trust, and the cause was neither trust nor a certificate format but a stale peer image.read_cert_and_key/2keeps only the first certificate in the PEM andquic_h3:build_server_quic_opts/1merges the caller'squic_optslast, so the chain must ride insidequic_opts; the image on port 54007 was built beforeC99/tests/interop/peer/patch-erlang-chain.pyexisted and served the leaf alone. Rebuilt from the patched source, all five published ports verify, and the re-run is 7 of 7 across all five implementations, every proof on its first attempt and all under--trust system. The environment is now reproducible from the repository:C99/tests/interop/deploy-vps-peers.shbuilds and starts the five endpoints,C99/tests/interop/reset-vps-peers.shis the realWEBTRANSPORT_VPS_INTEROP_RESET, andC99/tests/interop/sync-vps-peer-certificates.shwithC99/tests/interop/vps/cron.d/webtransport-interop-certificatesrenews the certificate and restarts the peers only on change. The Caddy site block isC99/tests/interop/vps/caddy/webtransport-interop.caddy. All of that is committed in3de080b.
Checks: Debug, Release and ASan+UBSan, each 97/97; check-cppcheck.sh; the Clang Static
Analyzer over 106 sources with no findings; check-matrix.sh; check-portability.sh;
the Windows cross-compile and the mingw -Werror link; and wt-conformance-c99 --scenario all at 55/55.
Both
- A Retry packet's
Unusedfield is ignored, as RFC 9000 section 17.2.5 requires (WT-227). This is one item with two halves, because both libraries were changed for the same reason: each required the field to be zero and so refused RFC 9001 appendix A.4's own Retry, which begins0xff, and with it every Retry a conformant server writes with those bits set. The Swift half drops the check, retains the parsed nibble on the type and writes it back inencode()— without that, a re-encode produced0xf0where the server sent0xff, so the pseudo-packet a verifier built was not the packet that arrived and the RFC's tag could not verify — exposes it asQUICRetryPacket.unusedBits, and inverts the test that asserted the wrong rule into an acceptance loop over all sixteen values. The C99 half drops the same check, and its new test decodes the repository's own A.4 vector and then all sixteen values. - The version is 1.5.0 in the lockstep.
VERSIONand both mirrors agree, written with./Swift/check-version-sync.sh --writerather than by hand, socheck-version-sync.shand the C99 configure check both pass. Minor rather than patch because the release adds public Swift API and breaks no caller. - No source file is 1,000 lines or more — the largest is 996, down from 4,154 — and the change moved code rather than rewriting it. Two of the splits touched both libraries in one change and are recorded here rather than split:
WebTransportInteroperableNetworkRuntime.swift(2843) andsrc/quic/connection.c(3448) withtests/unit/test_quic_connection.c(4154); and the session core,WebTransportSession.swift(2080) withtests/unit/test_runtime_session_pair.c(1611). Each split test file stayed one executable and one CTest test, so the 97-test name list is byte-identical, and the Swift suite is unchanged at 376 tests. - The Windows DLL staging race is gone and the CI matrix grew.
wt_stage_windows_runtimeattached a POST_BUILD copy oflibwebtransport.dllto every test and app target, so 90 copies of the same file were scheduled in parallel into two directories and the loser failed withPermission denied; that flake is why the native Windows leg was advisory. The copies are now one sequential edge per distinct directory, attached to the shared library, re-proved as 90 edges and 90 commands before and 1 edge and 2 commands after.windows-nativelostcontinue-on-error, and alinux-debian13job runs the same Debug configure, build and ctest in adebian:trixiecontainer; that leg's first run failed at CMake's compiler check because Debian'sgcconly recommendslibc6-devand the step uses--no-install-recommends, solibc6-devis named (WT-224, WT-225). - The third audit pass's record was committed and then its working material removed.
AUDIT/held both agents' verbatim reports, the pass's index and a 149-entry ledger; it left the tree once every result was in the code, the tests, the READMEs, the compliance matrix and the wiki, because the ledger still carried 102 historicalAUDITentries that read as open findings to anyone who did not know the status field, and a future audit reading it would have been misled. Theaudit/2026-09-15branch and about 2.3 GB of scratch trees and logs went with it. Every removed file was committed, so it stays recoverable withgit log --all --diff-filter=D -- AUDIT, and the references to it were re-pointed rather than left dangling. - The documentation was reviewed claim by claim against the tree (
AGENTS.md,RELEASE.md, both READMEs): the layout lists the targets and directories that exist, the gates are the list the three workflows run including the enforced Windows job and the Debian leg, the READMEs' check counts are what a fresh build reports, and the repository's "what remains" sentences name the tracker row instead of keeping a second list that can drift. The hand-maintainedViews (14d)badge and its committed.github/traffic.jsonsnapshot were refreshed by hand once more (56to60), still with no workflow regenerating them.
Checks: CI on the released commit: C99 CI (macOS, both Ubuntu legs, Debian 13, Wine, and the
enforced native Windows leg), Swift CI, and the security scan — all green.
What is not in this release
- 0-RTT and session resumption are not implemented.
- The HTTP/2 capsule binding is not implemented; this is WebTransport over HTTP/3.
- Server push and connection migration are out of scope for this implementation.
- The Swift package is macOS-only and needs macOS 26+, Xcode 27 and Swift 6.4; the shipped
binaries are arm64 only.
Checks that ran elsewhere, and what did not run
Not run here, and reported as not checked rather than assumed: the Wine suite runs on the
Linux CI host (Wine is not installable on this machine), the FreeBSD suite is a by-hand
measurement on a real kernel, and there is no LeakSanitizer on Darwin.
Checksums
WebTransport-swift-1.5.0-macos-arm64.tar.gz
SHA256: 3891cc289b0d8d37a57e60749da420e778b34ea4cf7c3373bec978bce1e1af41
Bytes: 1685154
WebTransport-c99-1.5.0-macos-arm64.tar.gz
SHA256: 8e217a203bc3b988841cbe0d8d6705455024352b8657097871a92a6b859c3bac
Bytes: 500238