Skip to content

Releases

WebTransport 1.8

Choose a tag to compare

@Pummelchen Pummelchen released this 13 Nov 19:41

WebTransport 1.8

Both libraries, one tag, one artifact each: WebTransport 1.8 ships the Swift package and the
portable C99 library built for Apple Silicon (arm64), with a .sha256 beside each archive.

The protocol target moves to draft-ietf-webtrans-http3-17 (2 November 2026, WG Last Call) in
both libraries. The wire formats — stream types, capsules, the exporter context, the
webtransport-h3 upgrade token — are unchanged between the drafts; what changed is the
SETTINGS_WT_ENABLED codepoint and the rules around it, and with them who this release can talk to.
WT_ABI_VERSION does not move: the additions are new declarations, not changed signatures.

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

  • The protocol target is draft-17. WebTransportVersion.protocolDraft reports
    draft-ietf-webtrans-http3-17.
  • settingsValidation renames its strict case: .draft16Strict → .draft17Strict. This is a
    source-breaking rename for anyone who named the case explicitly (the CLI string is now
    draft17-strict). The default stays the strict posture; .interoperable is unchanged as the way
    to serve or speak to earlier revisions, and under draft-17 it covers the pre-draft-16
    advertisements too (see Both).
  • §3.1 advertisement rules. A strict client sends no SETTINGS_WT_ENABLED at all (draft-17
    gives the setting no meaning from a client); a strict server advertises the §9.2 codepoint
    (0x20b8933b) with the value 1. A server's SETTINGS carrying a value greater than 1 is the
    H3_SETTINGS_ERROR connection error §3.1 names, from either direction.
  • §5.5 with §5.6.2/§5.6.4: the flow-control baseline is anchored to the peer's SETTINGS. While
    no WT_MAX_DATA / WT_MAX_STREAMS capsule of a type has been received, the peer's
    SETTINGS_WT_INITIAL_MAX_* value stands in for "the value previously received", and a capsule
    that does not increase it — including one equal to it — closes the session with
    WT_FLOW_CONTROL_ERROR. The settings already granted that value; the first capsule must exceed it.
  • §4.4: a reset whose error code falls outside the WT_APPLICATION_ERROR range still resets the
    stream but maps to no application error code
    — delivered as a reset with no application error
    code, never a session error. WebTransportDraft17ErrorMapper.receivedApplicationErrorCode(forHTTPErrorCode:)
    returns nil for such codes.
  • New public surface: WebTransportPeerAdvertisedVersion and
    HTTP3Settings.webTransportAdvertisedVersion() (which era's rules a peer's SETTINGS select),
    and WebTransportFlowControlState.refusesRepeats (the era's refusal rule, seeded from the
    negotiation). Buffered-stream rejection gained a pin asserting it never affects the session the
    stream was meant for (§4.6).

Checks: the full package suite (403 tests, 0 failures), both CLI conformance suites 40/40,
swift format --strict, check-version-sync, check-api-compatibility, the library smoke pair,
check-manifest-sync, and the CI legs (ASan suite, TSan, the 20000-iteration fuzz, DocC). The
Swift client completed 7 of 7 interop proofs against the five independent implementations on
the routable host (13 November 2026), all under --trust system.

C99

  • The protocol target is draft-17. wt_protocol_draft() reports
    draft-ietf-webtrans-http3-17; WT_HTTP3_SETTING_WT_ENABLED is the §9.2 codepoint 0x20b8933b,
    and the draft-16 codepoint 0x2c7cf000 stays recognised as
    WT_HTTP3_SETTING_WT_ENABLED_DRAFT16.
  • §7.1 selection is a library surface, not a tool detail. New:
    wt_webtransport_version_profile_t (WT_WEBTRANSPORT_PROFILE_DUAL, the default, and
    _FINAL), wt_webtransport_version_t (_FINAL, _DRAFT16, _LEGACY),
    wt_webtransport_settings_apply_profile(), wt_webtransport_version_select() (server),
    wt_webtransport_client_version() (client), and
    wt_webtransport_peer_advertised_version() (role-free classification). A DUAL endpoint
    advertises both codepoints; a FINAL endpoint advertises the §9.2 codepoint alone, and a FINAL
    client sends none.
  • §4.4: a reset whose error code falls outside the WT_APPLICATION_ERROR range is delivered as
    the new sentinel WT_SESSION_RESET_NO_APPLICATION_ERROR
    (include/webtransport/api/events.h)
    — the stream is still reset, with no application error code, and never a session error.
  • The CLI tools default to the DUAL posture and grow --wt-enabled dual|final for the strict
    one; --upgrade-token is unchanged.
  • The conformance catalog renames its thirteen draft16-* scenario IDs to draft17-*, and the
    compliance matrix measures 42 of 43 draft-17 requirements (the one partial is Origin
    policy, which the library exposes and leaves to the application, as before). Three rows are new
    and tested: the §7.1 selection, the §5.5 SETTINGS baseline, and the §4.4 no-application-code
    reset.

Checks: C99/scripts/build-and-test.sh — 105 CTest tests — under ASan+UBSan, a fresh scratch
build with 0 warnings, check-format.sh clean over all 347 C sources under the pinned
clang-format 23.1.5, check-vectors.sh, and the 57-scenario conformance tool at 57/57 with the
renamed IDs. The C99 client completed 7 of 7 interop proofs against the five independent
implementations on the routable host (13 November 2026), and the server direction — the
pywebtransport and quic-go clients against wt-server-c99 — completed 2 of 2. The tree also
builds and passes the full suite under OpenSSL 4 (measured 13 November 2026, homebrew
openssl@4), which the macOS CI leg now ships by default; the CI cover leg runs the same suite on
Debian, FreeBSD, Wine and the native Windows compilers.

Both

  • §7.1 version selection, with a LEGACY answer. Both libraries implement the draft's version
    selection: the §9.2 codepoint a client sends selects the final version; the draft-16 codepoint
    selects draft-16; and the earlier drafts' advertisements (0x2b603742, 0xc671706a) — which is
    what every pre-draft-16 implementation this tree interoperates with actually sends, captured
    from the wire on 13 November 2026 — select a LEGACY session. The selection changes only
    advertisement and validation: the wire formats are identical across the drafts, so one code path
    serves every peer. The flow-control refusal rule follows the negotiated version — the SETTINGS
    baseline is a FINAL-session rule, and a DRAFT16 or LEGACY session runs its era's own rule, where
    a repeat of the received grant is legal and only a grant that goes backwards closes the session.
    This is measured, not designed: the first cross-test on the draft-17 tree failed 5 of 7
    client proofs precisely because the old client-side gate refused the peers' legacy
    advertisements and the draft-17 flow rule closed sessions the peers considered healthy.
  • The version moves to 1.8 in lockstep — both libraries rebuilt and republished at the same
    number, because a caller pairing them has no other way to know the pair is compatible. The
    protocol draft is a separate axis and moves to -17 in both; WT_ABI_VERSION stays at 2.

Checks that ran elsewhere, and what did not run

Not run on the release machine, and reported as not checked rather than assumed: the Wine suite,
the FreeBSD VM job, the Debian 13 leg, and the MSVC and Clang-CL Windows legs run in CI;
ThreadSanitizer runs in its own CI job; there is no LeakSanitizer on Darwin.

The connection-churn soak's scheduled runs produced no verdict, so the release machine ran the
same script.
Its two scheduled runs (12–13 November) established no sessions at all — flat
memory and thread profiles, the run's own verdict "no sessions were established — the run proved
nothing" — which is a runner-side failure of the harness, not a measurement. The release machine's
run (./Swift/run-soak.sh, 13 November 2026) established 400 of 400 connections and passed:
no sustained growth in resident memory or thread count. The leak-watch is checked for 1.8, on the
release machine rather than in CI, and the CI leg's empty runs are named here rather than counted
as either pass or fail.

Browser sessions with Chrome were not re-run for this release. Chrome is a draft-16-era peer;
serving it is .interoperable's contract, and the legacy-advertisement acceptance this release
adds is measured against the aioquic-based peer of the same era — but a live Chrome session is a
check that did not run, and it is named as one.

Checksums

WebTransport-swift-1.8-macos-arm64.tar.gz
  SHA256: c10f808be3256ee9aa40f9dcc47878d289fd412fdbdf69d510848d813188f5fb
  Bytes:  1744514

WebTransport-c99-1.8-macos-arm64.tar.gz
  SHA256: b94ff35c8dd48f79553179fc983ff3b37f91e55dde3aeb4485935cffe0947f38
  Bytes:  523495

WebTransport 1.7

Choose a tag to compare

@Pummelchen Pummelchen released this 18 Sep 23:04

WebTransport 1.7

Both libraries, one tag, one artifact each: WebTransport 1.7 ships the Swift package and the
portable C99 library built for Apple Silicon (arm64), with a .sha256 beside each archive.

There is no user-visible change in either library. This release exists because the two libraries
always carry the same version and are republished together: the number moves so that a caller
pairing them knows the pair is compatible, not because anything about the libraries changed.
WT_ABI_VERSION and the protocol draft are separate axes and do not move with it.

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

No changes. The library is rebuilt and republished at 1.7 because the two libraries always carry the
same version.

C99

No changes to the library. C99/src/ is identical to 1.6, so nothing about its behaviour, its
headers or its ABI moves. What did change is its test suite, which regained coverage a refactor had
silently dropped: the test_quic_packet split in the 1.6 cycle discarded the pre-split file's whole
main() body — about 535 lines — and most of it was genuinely absent afterwards. It is restored as
four topic sources of the same test executable, so the CTest count is unchanged while the checks that
executable runs went from 81 to 212:

  • the RFC 9001 A.2 header-protection vectors, decoded and re-encoded byte for byte;
  • first-byte classification (long, short, Version Negotiation, empty, NULL, three bytes);
  • Handshake, Initial (300-byte token) and short-header round trips, with the short-header encoder
    now reachable from a test at all;
  • the Retry round trip, its built minimum, the header-into-tag underflow regression, and the
    long-header refusal;
  • the decoder refusal corpus (fixed bit, reserved bits, a 21-byte connection ID, empty input, a
    Length beyond the buffer, and every prefix of a valid packet), the ten encoder refusals, and
    coalesced-datagram walking;
  • wt_quic_packet_type_name, which no test called before.

Two of the restored areas were confirmed able to fail before being trusted, by breaking
C99/src/quic/packet.c, watching the specific check fail, and restoring the source byte for byte.

Checks: C99/scripts/build-and-test.sh — 105 CTest tests — a fresh scratch configure and build
with 0 warnings, test_quic_packet at 212/212, and check-format.sh clean over all 347 C
sources.

Both

Changed, in the release process rather than in the libraries:

  • The bump checklist is written down and enforced. Bumping the version writes VERSION and the
    two mirrors, but every other reference to the version is prose, and nothing checked it — which is
    how the 1.6 release briefly left the README and the wiki naming 1.5.2. RELEASE.md now lists every
    document a bump must carry, and Swift/check-version-sync.sh checks the four repository-side ones:
    the notes file exists, the README links the release tag, the README's SwiftPM pin agrees, and
    AGENTS.md names the version. CI already runs that script, so forgetting one is now a failing
    gate rather than a released mistake. The wiki half of the list is marked as checked by hand,
    because the wiki is a separate repository and no gate in this one can read it.
  • The two libraries' ABI versions are compared. They must be identical on a release, and the
    same script now fails when they differ.

Checks: ./Swift/check-version-sync.sh, run by CI, and each of its checks was seen to fail before
being trusted.

What is not in this release

Unchanged from 1.6 — the limitations listed in docs/release-notes-v1.6.md still stand, including
that 0-RTT and session resumption are not implemented, the HTTP/2 capsule binding is absent, server
push and connection migration are out of scope, and the Swift client cannot set the TLS server name.

Checks that ran elsewhere, and what did not run

Not run on the release machine, and reported as not checked rather than assumed: the Wine suite and
the FreeBSD VM job run in CI, the macOS and Linux C99 legs and the MSVC and Clang-CL Windows legs run
in CI, ThreadSanitizer runs in its own CI job, and there is no LeakSanitizer on Darwin. The VPS
interop suites need the routable host and were not re-run for this release.

Checksums

WebTransport-swift-1.7-macos-arm64.tar.gz
  SHA256: fb5f61795e718e8deee90151821353c878730761e6644d73efa42bf75b559a53
  Bytes:  1736508

WebTransport-c99-1.7-macos-arm64.tar.gz
  SHA256: 053c41f68ff3fe615dd452d431b62e40a01b7723a73de33a0254aff89d9111b4
  Bytes:  506834

WebTransport 1.6

Choose a tag to compare

@Pummelchen Pummelchen released this 18 Sep 22:48

WebTransport 1.6

Both libraries, one tag, one artifact each: WebTransport 1.6 ships the Swift package and the
portable C99 library built for Apple Silicon (arm64), with a .sha256 beside each archive.

This is the first release after a pre-production audit of both libraries, and the first under the
MAJOR.MINOR scheme: a release is 1.6, never 1.6.0, and a bug-fix release moves the minor
number. The audit's user-visible work landed in the C99 library — a QUIC parsing defect, an
unvalidated public field, two refusals that were missing — plus one C99 feature that moves the ABI.
The Swift library has no user-visible behaviour change; most of what the audit did there was
tooling, tests and decomposition, which is why its file count changed and its behaviour did not.

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

No user-visible changes.

One guard was added that is worth knowing about even though it changes no artifact: a repository
gate (Swift/check-unsafe-flags.sh, AUD-0017) now refuses a package configuration carrying
dependency unsafeFlags. The API-compatibility check consumed the package by path, so it could
not see this — SwiftPM rejects such a package when it is used as a dependency but builds it happily
in place — and the gate exists so the mistake is caught here rather than in a consumer's build.

The rest of the audit's Swift findings were about enforcement: The rest of the audit's Swift findings were about enforcement:
SwiftLint had no committed config and was not run (AUD-0006), its rules and the formatter rewrote
each other's output (AUD-0013, AUD-0014), one autofix did not compile (AUD-0016), and the
address-sanitizer job ran three tests rather than the suite (AUD-0020). The public API surface is
unchanged: the diff in Swift/Sources/WebTransport/ is decomposition into extensions and file
splits, not signature changes.

Checks: swift test — 394 tests, 0 failures — under -warnings-as-errors -strict-concurrency=complete -require-explicit-sendable; swift format lint --strict over both
manifests; swiftlint lint --strict; swift build clean.

C99

Fixed:

  • A Version Negotiation packet is no longer read as an Initial with a token (AUD-0023).
    wt_quic_initial_token inspected the packet without first establishing that it was an Initial, so
    a Version Negotiation packet — which has no token and no version the reader can honour — was
    parsed as one and its bytes reported as a token. It also reported no version the caller could
    check, so a caller could not tell which version the peer had answered with. Backed by
    80f5b1c, and backed by C99/tests/unit/test_quic_packet.c, which pins a Version Negotiation
    packet's answer and executes the two leading guards the defect sat behind (AUD-0029). Before,
    the version list parsed as a Token Length and a one-byte "token", and the function returned
    WT_OK — which let a crafted version-zero packet suppress the server's Retry, since the caller
    had no version to check.
  • NEW_TOKEN no longer stores unvalidated wire input in a public field (AUD-0022). The frame
    wrote the wire's declared token length into a public field — one nothing in this build reads —
    before the token had been checked as taken and before its length was known to be sane. The impact
    was latent rather than observable: the field is public, so it is part of what a consumer may read,
    and it held a value from the network rather than a validated one. It is now written only after
    validation.
  • A QPACK decoder capacity this build cannot honour is refused, and changing one is no longer
    silent
    (AUD-0027, superseded by 7417aec). 1.5.2 accepted any capacity and, on a changed
    value, re-initialised the decoder table — discarding whatever the peer had already inserted.
    wt_http3_endpoint_set_decoder_capacity now returns WT_ERR_STATE for a second call with a
    different capacity, and is a no-op when the capacity is unchanged.
  • The C99 sanitizer configuration builds with gcc (AUD-0038). -fno-sanitize=function is a
    clang-only flag, and passing it to gcc made the sanitizer configuration unbuildable — on the one
    leg that would have caught it, because CI excluded it. The flag is now applied only when the
    compiler is clang, and the sanitizer step runs on every matrix entry.

Added:

  • The QPACK dynamic-table receive half is implemented and reachable through the public API
    (WT-265). wt_http3_endpoint_set_decoder_capacity now honours a non-zero capacity, the endpoint
    applies the peer's encoder-stream instructions (wt_http3_endpoint_on_qpack_encoder_bytes) and
    reports how much of a chunk it consumed, and it writes Insert Count Increment and Section
    Acknowledgment (wt_http3_endpoint_write_qpack_decoder_acks). Before this release the encoder
    stream could not be parsed at all, so any dynamic reference from a peer failed with a
    decompression error that blamed the peer. This is the feature AUD-0027 pointed at, and it is
    library-level: the shipped C99 tools call neither new function, so their wire behaviour is
    unchanged. Backed by C99/tests/unit/test_http3_endpoint_requests.c
    (test_the_dynamic_table_is_filled_and_acknowledged, and the re-pointed
    test_request_headers_are_decoded).
  • This release moves WT_ABI_VERSION from 1 to 2. The public wt_http3_endpoint_t gained a
    field (uint64_t decoder_acked_insert_count), so a consumer compiled against an earlier header
    must recompile, and wt_abi_version() returns 2. WebTransportVersion.abi is 2 as well: the two
    libraries' ABI versions are identical on a release, and check-version-sync.sh now fails if they
    differ. The library version and the ABI version are separate axes; this release moves both, the
    version because a release is a release and the ABI because a public layout changed. Backed by
    C99/tests/unit/test_version.c (wt_abi_version() == WT_ABI_VERSION) and the Swift gate.

Checks: C99/scripts/build-and-test.sh — 105 CTest tests in Debug, Release and ASan+UBSan — a
fresh scratch configure and build with 0 warnings scanned from the log, and
C99/scripts/check-format.sh clean over all 343 C sources.

Both

Changed:

  • The version lockstep moves to 1.6, and the scheme becomes MAJOR.MINOR. VERSION is the
    single source and ./Swift/check-version-sync.sh --write wrote the C99 header
    (WT_VERSION_MAJOR 1, WT_VERSION_MINOR 6, WT_VERSION_PATCH 0) and
    WebTransportVersion.swift ("1.6") from it, so the Swift gate and the C99 CMake configure both
    refuse a mismatch. wt_version_string() prints 1.6 rather than 1.6.0, so the string agrees
    with the tag and with the artifact names. WT_VERSION_PATCH is kept and is 0; it is in the
    public header and removing it would stop existing consumers compiling. The two validators, the
    C99 renderer and the test's derived expectation all accept a two-component value and compare the
    mirror the way the string is printed.
  • The C99 public headers changed since 1.5.2 — 47 headers, from the two fixes above and the
    QPACK endpoint work. The ABI version in the C99 header is the thing to check against; it is 2.

Checks: ./Swift/check-version-sync.sh (the three mirrors agree), the C99 CMake configure, and the
version test, which derives its expectation from the header rather than repeating a literal.

What is not in this release

  • 0-RTT and session resumption are not implemented, in either library.
  • 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 and are not notarized.
  • The Swift client still cannot set the TLS server name (SNI); the certificate is checked
    against the configured authority, but name-based virtual hosting is not reachable by address.

Checks that ran elsewhere, and what did not run

Not run on the release machine, and reported as not checked rather than assumed: the Wine suite and
the FreeBSD VM job run in CI, the macOS and Linux C99 legs and the MSVC and Clang-CL Windows legs
run in CI, ThreadSanitizer runs in its own CI job, and there is no LeakSanitizer on Darwin. The
VPS interop suites need the routable host and were not re-run for this release.

Checksums

WebTransport-swift-1.6-macos-arm64.tar.gz
  SHA256: a297d463de92871a0d2e9bb8b8776649357383e3299c4d9c511edf323c12c7eb
  Bytes:  1736515

WebTransport-c99-1.6-macos-arm64.tar.gz
  SHA256: 65811fb4832994b4c72a59fe5ef0c206acb473049c17508038eebf24358eec50
  Bytes:  505628

WebTransport 1.5.2

Choose a tag to compare

@Pummelchen Pummelchen released this 18 Sep 04:24

WebTransport 1.5.2

Both libraries, one tag, one artifact each: WebTransport 1.5.2 ships the Swift package
and the portable C99 library built for Apple Silicon (arm64), with a .sha256 beside each
archive. It carries one Swift fix: a .pkcs12 server identity now resolves on a host that
has no unlocked keychain, which is what a headless server, a daemon and a CI job with no
login session have. The C99 library is unchanged and is rebuilt and republished at the new
number because the two always carry the same version.

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:

  • A .pkcs12 identity resolves with no unlocked keychain, and no longer files the caller's private key in their keychain (WT-262). SecPKCS12Import's documented macOS behaviour is to import the identity into the default keychain — the SDK says its "normal behavior ... is to import items into process memory on iOS, and into the default keychain on macOS" — and the call passed only kSecImportExportPassphrase. On a host with no unlocked keychain the bundle decoded and then failed with OSStatus -26276, an undocumented code the error text reported as "check the passphrase and bundle format": the wrong cause, which is what made the finding expensive. On a host with an unlocked keychain the same call silently filed a copy of the caller's private key in their login keychain — a side effect nothing in the API contract asked for, and the reason the package's two other identity sources, .developmentSelfSigned and .certificateChain, already create their keys with kSecAttrIsPermanent: false. The import now passes kSecImportToMemoryOnly: true, the SDK's own spelling of "in-process identity", which the header documents as importing into process memory and ignoring keychain options; it is available since macOS 15 against this package's macOS 26 floor, so it is unconditional. The resolved identity is unchanged in kind: SecIdentityCopyPrivateKey and SecIdentityCopyCertificate both succeed on it, its key signs, and a listener bound with it completes a real session — which the new tests assert rather than assume. The invariant is now stated on WebTransportServerIdentity and enforced rather than documented: resolving any identity source is keychain-free and prompt-free, and Swift/check-pkcs12-keychain-free.sh, wired into swift-ci.yml, gives the PKCS#12 suites a default keychain that exists and is locked — the only state in which the fix is distinguishable from the bug, since a runner's unlocked keychain passes either way. On the pre-fix tree that check fails with -26276, and it restores the runner's keychain on every exit path.
  • The import's failure text names its cause and its remedy. One "check the passphrase and bundle format" sentence was wrong for every status but one. errSecAuthFailed now says the passphrase is wrong or the bundle failed its integrity check; errSecDecode names a malformed, truncated or legacy-RC2 container and says to re-export with PBES2/PBKDF2, AES-CBC and a SHA-256 MAC; and the keychain codes, including -26276, are reported as the defect they are rather than as advice about the passphrase.

Added:

  • Swift/check-pkcs12-keychain-free.sh and its swift-ci.yml step, which make the keychain-free invariant a gate rather than a comment, plus two tests in WebTransportNetworkRuntimeTests: pkcs12IdentityServesALoopbackSession, which binds a listener with the fixture identity and completes a session, and pkcs12ResolutionAddsNothingToTheKeychain, which counts the keychain identities carrying the bundle's leaf before and after a resolution and requires the count not to move.

Checks: swift test under -warnings-as-errors -strict-concurrency=complete -require-explicit-sendable (400 tests, run with the login keychain locked — the state
that failed before the fix, and the run needs no workaround now), the new
./Swift/check-pkcs12-keychain-free.sh, ASan over the whole suite, swift format lint --strict over both manifests, check-api-compatibility.sh, check-manifest-sync.sh,
check-target-imports.sh, check-version-sync.sh, and the arm64 release build. The rest of
the Swift gates — DocC, both CLI conformance suites, the library smoke pair, the
20000-iteration parser-fuzz run and the thread sanitizer — run in CI on this commit.

C99

No changes. The library is rebuilt and republished at 1.5.2 because the two libraries always
carry the same version, so a caller pairing them knows the pair is compatible. WT_ABI_VERSION
and the protocol draft are separate axes and do not move with the library version.

Checks: C99/scripts/build-and-test.sh --all — 97 CTest tests in Debug, Release and
ASan+UBSan.

Both

Changed:

  • The version lockstep moves to 1.5.2. VERSION is the single source and
    ./Swift/check-version-sync.sh --write wrote the C99 header and WebTransportVersion.swift
    from it, so the C99 CMake configure and the Swift gate both refuse the mismatch.

What is not in this release

  • 0-RTT and session resumption are not implemented, in either library.
  • 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 and are not notarized.
  • The Swift client still cannot set the TLS server name (SNI); the certificate is checked against the configured authority, but name-based virtual hosting is not reachable by address.

Checks that ran elsewhere, and what did not run

Not run on the release machine, and reported as not checked rather than assumed: the Wine
suite and the FreeBSD VM job run in CI, the two macOS and three Linux C99 legs and the MSVC
and Clang-CL Windows legs run in CI, ThreadSanitizer runs in its own CI job, and there is no
LeakSanitizer on Darwin. The VPS interop suites need the routable host and are not re-run for
a Swift-only identity fix; their recorded results stand on the source they were run against.

Checksums

WebTransport-swift-1.5.2-macos-arm64.tar.gz
  SHA256: 2f9289dc2a575b062fbce8f498133e2769d5c340d3e8d97bdecc009ed1086bb4
  Bytes:  1700224

WebTransport-c99-1.5.2-macos-arm64.tar.gz
  SHA256: 8a59d0830cba740ee361e765e965c37c1817419cc62d1f8258c5002aacaf4eff
  Bytes:  503943

WebTransport 1.5.1

Choose a tag to compare

@Pummelchen Pummelchen released this 18 Sep 03:22

WebTransport 1.5.1

Both libraries, one tag, one artifact each: WebTransport 1.5.1 ships the Swift package
and the portable C99 library built for Apple Silicon (arm64), with a .sha256 beside each
archive. This release carries the fix set that landed after 1.5.0: a wire-visible capsule
framing correction in both libraries, a Swift certificate check that now follows the
configured authority, the C99 library's first build and run under MSVC and Clang-CL, and the
CI and interop tooling that proves them.

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 client verifies the server's certificate against the configured authority (WT-261). authority was the extended CONNECT's :authority and nothing else, while TLS validation was the framework's, against the address the connection was opened with — the new NetworkConnection API exposes no TLS server-name control — so dialling an address for a name the server's certificate carried failed the handshake with a TLS alert, a case the C99 client handled routinely because its address and authority are separate parameters. The fix changes one input to the framework's own check rather than adding a check of its own: when the authority names a different host than the one dialled, the client installs QUIC.tls.certificateValidator and evaluates the platform's trust chain for that name with SecPolicyCreateSSL and the platform's own anchors, so only which name the certificate must prove changes and nothing about who is trusted does; when the two agree, the framework's validation is untouched. WebTransportQUICPeerTrustPolicy.certificateName(endpoint:authority:) is the decision as a pure function, so the rule is testable without a live handshake: an authority may be host, host:port or a bracketed IPv6 literal, and its host is compared case-insensitively with the dialled host reduced the same way. The interop runner now separates the two on purpose — it dials WEBTRANSPORT_VPS_INTEROP_ADDRESS and names WEBTRANSPORT_VPS_INTEROP_AUTHORITY, matching the C99 runner's variables — so the split is what the suite exercises rather than a workaround for its absence. Measured against the five VPS peers: 7 of 7 dialling 91.99.176.243 for a certificate that carries only pummelchen.91.99.176.243.nip.io, every proof on its first attempt; --authority wrong.example.com and the pre-fix behaviour of validating the dialled address are both refused, with the peer logging a TLS alert error (0x12E and 0x12A). A matching name is still refused for a self-signed fixture, because the anchors were not touched. What remains is not tracker work and is recorded in Known Limitations: SNI itself still cannot be set, so a server that selects its certificate from the requested server name presents its default one.
  • A session hands its QUIC connection back when the peer closes it (WT-85). A cleanly closed session kept its connection until QUIC idled out, because Network.framework declares no cancel() for a started NetworkConnection. The release path was measured before it was used: writing applicationError only stores the code and leaves the connection ready; dropping a session cancels its tasks and the peer's connection then fails within 50 ms; and the side that must not release on its own initiative is the closing one, whose WT_CLOSE_SESSION capsule may still be in flight with the session's code and reason. So the release happens at the point that cannot overtake anything — when the session's capsule reader delivers the peer's WT_CLOSE_SESSION, or sees the peer end the CONNECT stream — and a clean close now ends both connections promptly instead of leaving either end holding it. A third-party peer that does not release is still entitled to keep its connection open, which the documentation says with the workaround.
  • A control stream the transport never delivered is named (WT-221). The condition now reports WebTransportNetworkRuntimeError.peerControlStreamNotDelivered instead of a bare timeout, with the measured cause (13 of 1600 connections on a saturated receiver) and why a longer deadline cannot help: the stream is never resent and no other stream has to arrive for the drop to become observable. Without the name, a caller could not tell this apart from a slow peer.

Checks: swift test under -warnings-as-errors -strict-concurrency=complete -require-explicit-sendable (393 tests), ASan and TSan, swift format lint --strict over both
manifests, the DocC catalog, check-api-compatibility.sh, check-manifest-sync.sh,
check-target-imports.sh, check-version-sync.sh, both CLI conformance suites at 40/40, the
library smoke pair, 20000 parser-fuzz iterations under ASan, and the arm64 release build.

C99

Fixed:

  • A client that selects a zero-length connection ID is answered (WT-258). RFC 9000 section 5.1 permits a zero-length connection ID, and section 5.1.1 uses a zero-length Destination Connection ID in every packet sent back to such an endpoint; the listener required a non-empty one before it would learn the peer, so it dropped every datagram from a client that chose one and reported only a timeout. The packet was the evidence — a relay capture of the first datagram showed the source length byte 0x00 — and it came from the second independent client (below), not from a synthetic case. The listener now requires only the destination connection ID, which section 7.3 makes mandatory and which the client checks back as original_destination_connection_id.
  • The tools' capsule bound is per capsule, not per delivery (WT-257). A close carrying the draft's maximum 1024-byte reason is 1032 bytes of capsule and fits comfortably in one DATA frame, but the bound was applied to the delivery, so the session closed with H3_EXCESSIVE_LOAD (0x107), and so did any DATA frame carrying more than the buffer of smaller capsules. Reproduced first — the new scenario failed as refused=1, error=0x107, serverClosed=1 — then the walker takes what fits and walks again while bytes remain, and its buffer clears the draft's largest capsule.
  • The static archive and the DLL's import library stop claiming one file, and the DLL says what it exports (WT-260). Both libraries are named webtransport, and on Windows a shared library's import library is named after the DLL, so the static archive and the DLL's import library were the same webtransport.lib — which Ninja refuses outright, and mingw never showed because its import library is libwebtransport.dll.a. The static archive is webtransport_static.lib where the collision exists (MSVC and clang-cl); the DLL and its import library keep the names a Windows consumer expects, and every other platform is unchanged. The DLL itself had exported nothing: mingw's --export-all-symbols had been exporting every symbol by accident of the toolchain, and MSVC wrote an import library with no symbols, so WINDOWS_EXPORT_ALL_SYMBOLS now makes CMake generate the module-definition file from the objects — which covers the functions, but not a data symbol, so WT_QUIC_DATA carries the standard dllexport/dllimport pair keyed on WT_BUILDING_SHARED_LIBRARY/WT_LINKING_SHARED_LIBRARY for wt_quic_initial_salt_v1, whose consumer needs dllimport because a data reference has no import-library thunk. The property is scoped to WIN32 AND NOT MINGW, because asking CMake for a module definition on mingw replaces its implicit export-all and left internal functions unexported, which broke both mingw legs until it was scoped.

Added:

  • A second independent client, quic-go with webtransport-go (WT-153). One client is not a matrix: a server that happened to suit aioquic's habits would look correct. C99/tests/interop/peer/go-client/ is a different language, a different QUIC stack and a different WebTransport layer, built as a container image and driven by C99/scripts/run-container-interop-server.sh beside pywebtransport/aioquic; both complete a session, exchange the message in both directions, and the server reads the peer's close capsule. It found WT-258 on its first run.

Changed:

  • MSVC and Clang-CL now build and pass the suite (WT-260), which is the plan's Phase 12 matrix complete on every compiler it names. Both Windows legs had used mingw GCC, so cl and clang-cl had never built this tree; making them pass took seven defects no POSIX compiler can report, and the two jobs are now in c99-ci.yml rather than a dispatch-only probe, so a regression in either compiler fails a pull request: the webtransport.lib collision above; an uninitialized const array (wt_tls13_zeros, C99 6.7.9p3, MSVC C4132); the MSVC CRT's deprecation of portable C (getenv, fopen, answered once with _CRT_SECURE_NO_WARNINGS/_CRT_NONSTDC_NO_DEPRECATE in wt_set_c99); rpcndr.h defining small as a macro, which renamed two receive buffers in test_windows_udp.c; a libFuzzer probe that applied -fsanitize=fuzzer,address but tested only -fsanitize=fuzzer and read MSVC's exit status for a command MSVC did not understand; the DLL that exported nothing; the data symbol whose consumer needs dllimport; and the corpus helper run_file, unused where WT_FUZZ_NO_CORPUS compiles the corpus out. The probe workflow that found them is deleted.
  • Every packaging script clears its build and install directory (WT-253). out/<platform>/{build-install,install} was never cleared, so after a version bump the previous version's library was still there and the release archive shipped both: the first 1.5.0 dry run produced an archive containing libwebtransport.1.4.0.dylib and libwebtransport.1.5.0.dylib (618,971 bytes) where a clean build gives 500,238. All three scripts now rm -rf their pair before configuring, per script rather than in a shared helper, be...
Read more

WebTransport 1.5.0

Choose a tag to compare

@Pummelchen Pummelchen released this 17 Sep 00:26

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 decode as validation accepted a forged Retry. QUICRetryIntegrityTag holds the section's fixed key and nonce, verification goes through AES.GCM.open so 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: compute passed an empty associated data value and so disagreed with the RFC while verify agreed with itself.
  • An unknown or reserved unidirectional stream type is ignored (RFC 9114 section 6.2, WT-244). The accept path and readPeerControlStream threw unexpectedFrame for the reserved type 0x21, 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 stayed accepted while the peer was told H3_MESSAGE_ERROR. The failure now routes through the existing closeForFlowControlViolation.
  • 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 measured retainCritical accepted=100000 retainedCount=100000 against enqueue 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 existing HTTP3ConnectionError(.streamCreationError).
  • acceptUnidirectionalStream recomputes 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 on initial_max_streams_bidi and initial_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.dequeue and InteroperableQUICInboundStreamCollector.next still rethrew the framework's bare POSIXErrorCode after WT-185 translated it at waitForReady; the measured error is NWError.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, CancellationError and 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. InteroperableQUICConnectionQueue is generic over its element with a release closure, 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 -26276 does 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() and integrityPseudoPacket(originalDestinationConnectionID:retryPacketWithoutIntegrityTag:); and QUICRetryPacket.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) var rather than public 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 — an internal final class state holder behind computed get-only properties — was thrown away, because it preserved every declaration line but made two copies of the public Sendable struct 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 plus WebTransportQUICConnectionAdmission.swift and WebTransportQUICRuntimeSupport.swift; QUICCoreState.swift, DeterministicNetworkRuntimeSupport.swift, WebTransportCLIConformance.swift, LibrarySmokeClient/main.swift and WebTransportProcessTests.swift were split on their own seams; and the session manager's mutating core became WebTransportSessionLifecycle.swift, WebTransportSessionStreams.swift, WebTransportSessionFlowControl.swift and WebTransportSessionDatagrams.swift. It is a move rather than a rewrite: the Swift suite is unchanged at 376 tests, 0 failures, and the public/open declaration 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_capsule accepted a capsule after the session had closed — raising the peer's data limit with it — and accepted a WT_DRAIN_SESSION carrying 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_data and _on_datagram still delivered consumer callbacks after termination. Both now apply the gate before the lookup and before the callback.
  • :scheme must be https (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, so HTTPS still 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_parse dereferenced 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_DATAGRAM is 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 to ENABLE_CONNECT_PROTOCOL now covers it.
  • An extended CONNECT requires :scheme and :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 CO...
Read more

WebTransport 1.4.0

Choose a tag to compare

@Pummelchen Pummelchen released this 16 Sep 00:26

WebTransport 1.4.0

The pre-production audit's fixes, the first release whose version is single-sourced,
and the first that carries both libraries of this repository.

This is one project's release, not one library's. The Swift package and the portable
C99 library carry the same version (1.4.0), ship under one tag, and are described
together here; the source of both is on this Release as
Source code (tar.gz) / Source code (zip) for the tag.

Asset What it is
WebTransport-swift-1.4.0-macos-arm64.tar.gz the Swift products: WebTransportClient, WebTransportServer, SHA256SUMS, LICENSE, THIRD_PARTY_NOTICES.md, README-binaries.txt
WebTransport-c99-1.4.0-macos-arm64.tar.gz the C99 library: libwebtransport.1.4.0.dylib + libwebtransport.a, 64 public headers, the find_package CMake package, the three wt-*-c99 tools, LICENSE, THIRD_PARTY_NOTICES.md, README-binaries.txt
each ….tar.gz.sha256 the digest of the archive beside it

lipo -archs reports exactly arm64 for every Mach-O in both archives — the two
Swift products, the C99 dylib, the C99 static library and the three C99 tools — and
the release script asserts that before packaging. Neither archive is Developer ID
signed or notarized; each README-binaries.txt says so and gives the quarantine
command. The C99 dylib additionally requires the platform's OpenSSL 3 at runtime
(macOS ships LibreSSL, not OpenSSL 3), which its README-binaries.txt states with the
path this build resolved.

The pre-production audit landed

A full audit of both implementations — 108 findings, 99 fixed and verified, the rest
recorded with their reasons — is on main and in this release. The four S0s, each with
a regression test:

  • the Swift 6.4 test bundle did not link (WebTransportTLSCore was an implicit
    dependency);
  • the CONNECT-stream capsule reader could be driven into remote memory exhaustion: a
    peer's declared capsule payload was buffered whole before anything checked it, and
    maximumConnectStreamCapsulePayloadBytes (1028) is now enforced before the buffer
    grows, so an oversized WT_CLOSE_SESSION is an H3_MESSAGE_ERROR on that stream;
  • ten QPACK static-table entries were truncated at RFC 9204's line wrap, and the
    --check written to catch that re-derived the same error and could not fail;
  • the draft-16 :protocol token was defined as the HTTP/2 capsule token, so
    webtransport-h3 was neither sent nor accepted.

The audit that produced this release kept a ledger, per-finding evidence and environment notes in the
tree; that working material has since been removed so a later audit does not read a finished pass as a
live one. It remains in the repository's history at this release's own commit (509fa91) and the audit's
merge commit 6607d71.

Check: swift test reports 360 tests, 0 failures; ctest reports 97/97 in the
Debug, Release and ASan+UBSan configurations.

The C99 library, now in the release

The C99 tree is built and packed by C99/platform/macos26/compile-dylib.sh (Part 2's
named builder for this platform) and was previously only built and tested. It is
complete as an implementation: the QUIC wire core and crypto layer with vectors
extracted from the RFCs, the TLS 1.3 handshake, the QUIC connection runtime, HTTP/3,
QPACK including its dynamic table, the draft-16 WebTransport session layer and the
public consumer API.

  • Its identity is observable from the artifact alone: the archive carries the
    version-stamped libwebtransport.1.4.0.dylib and its symlinks, and
    wt_version_string() returns 1.4.0.
  • WT_ABI_VERSION and wt_protocol_draft() are separate axes and did not move with
    this release.
  • The archive's README-binaries.txt names the OpenSSL 3 runtime dependency and the
    path the build resolved, because the library is deliberately not bundled with it (the
    project's documented decision is that the platform supplies it, so fixes arrive
    through the distributor).

Checks: C99/scripts/build-and-test.sh --all — 97/97 CTest in Debug, Release and
ASan+UBSan, 0 warnings; check-vectors.sh (RFC 8448/7748/9204/7541 vectors
re-extracted and compared), check-matrix.sh (91 named symbols/tests),
check-portability.sh, check-static-analysis.sh (94 sources, no findings),
check-cppcheck.sh, check-package.sh (the installed package builds a consumer),
check-workflows.py, and the three Windows gates (see below).

New public API: peer-initiated unidirectional streams

  • WebTransportSession.acceptUnidirectionalStream(maximumInitialBytes:) returns a
    WebTransportUnidirectionalStream, with the runtime equivalents on
    WebTransportNetworkSession. A peer-initiated unidirectional stream previously had
    no consumer at all: it was queued, and the queue grew until it refused.
  • The type is receive only — the stream identifier and receive(maximumBytes:),
    no send path — and a prefix naming another session is refused with sessionGone
    before the stream is registered or buffered, as the bidirectional path already did.
  • WebTransportLogText.escaped(_:) escapes backslash, quote, CR, LF, HTAB and every
    other C0 control and DEL, for peer-controlled text in operator output.

Check: the audit added 52 tests (308 → 360); both the new API's tests and the
F-swift-line-security-03 ceiling (refusedQueueFull(limit: 16)) are in that count.

Capability and bound corrections

  • datagramsAvailable — and therefore the capability echo() reports — follows
    SETTINGS_H3_DATAGRAM from both endpoints instead of being a constant true.
  • receive(maximumBytes:) honours its bound when the stream already holds a buffered
    initial payload, and keeps the remainder for the next read.
  • maxConcurrentConnections is Int?: nil is the only "not supplied", so an
    explicit 16 is no longer read as the old sentinel.
  • The per-connection inbound-stream queue is bounded by the advertised WebTransport
    stream limits, and a full queue is refused explicitly rather than growing without
    bound; teardown resets only the stream halves this endpoint owns.
  • CRYPTO-stream reassembly is linear and bounded; the TLS transcript is capped at 1 MiB.
  • FINAL_SIZE_ERROR is reachable: the checks ran after the gate that already returned.
  • The QUIC short-header decoder validates its reserved bits, as the long-header and
    Retry decoders did.
  • The HKDF-Expand-Label block counter refuses output past RFC 5869's cap instead of
    wrapping, and an Ed25519 key name no longer maps to an EC key type.

Checks: swift test under AddressSanitizer (360 tests) and Thread Sanitizer (338 —
the CI job skips CLIProcess/ReleaseArtifacts, whose wall-clock timeouts TSan's
slowdown blows through), plus the regression test each finding carries.

Toolchain, gates and repository hygiene

  • Swift 6.4 / Xcode 27 is the floor in both manifests
    (swift-tools-version: 6.4), in Swift/check-toolchain.sh, and in the README; the
    macOS jobs run on the xcode-27 image. Two things the compiler made explicit were
    fixed rather than suppressed: 12 redundant unsafe effect markers, and the
    WebTransportHTTP3CoreTests dependency on WebTransportTLSCore.
  • The version is single-sourced. VERSION at the repository root is authoritative,
    mirrored in C99/include/webtransport/version.h and
    Swift/Sources/WebTransport/WebTransportVersion.swift, with
    Swift/check-version-sync.sh (bump: --write) and the C99 CMake configure both
    failing on a mismatch. This is what makes "one repository, one version" true rather
    than aspirational: the C99 side moves from its pre-1.0 0.1.0 identity to 1.4.0.
  • C99 changes in this release include the QPACK static table, the :protocol token,
    the stream-table counters, transport-parameter validation, the Windows monotonic
    clock, capsules arriving after WT_CLOSE_SESSION, and the HTTP/3 field-name and
    field-value grammar.
  • Both manifests build with warnings-as-errors and strict memory safety; the manifests
    are under the formatting gate; every workflow action is pinned to a commit SHA with
    least-privilege permissions:; a blocking security-scan workflow runs gitleaks over
    the full history and trivy over the tree.
  • 185 files of committed CMake build output left the tree, and
    THIRD_PARTY_NOTICES.md carries the Apache-2.0 notice for OpenSSL, the C99 build's
    required dependency.

Checks: Swift/check-toolchain.sh 6.4 27.0, Swift/check-manifest-sync.sh (19 shared
targets), Swift/check-version-sync.sh, Swift/check-target-imports.sh (42 targets /
202 imports), Swift/check-api-compatibility.sh, swift format lint --strict.

What is not in this release

  • 0-RTT and resumption are not implemented in either library; the draft-16
    compliance matrix records that as a deliberate -- row.
  • The C99 library's FreeBSD and native-Windows CI legs are not jobs yet (the code
    on those platforms is measured by hand; see the Windows gates below).

Checks that ran elsewhere, and what did not run

Named here because "not checked, no input" and "checked and identical" are different
sentences (RELEASE.md Part 1 §1.2.7):

  • The three Windows C99 gates ran in full, but not all of them on the release host.
    That host has no Wine and cannot get one: every Homebrew Wine cask is disabled
    ("does not pass the macOS Gatekeeper check", disabled 2026-09-01), and no unsigned
    Wine build was improvised for a release. So:
    • check-windows-platform.sh and check-windows-build.sh ran on the release host
      (macOS, mingw-w64 14.0.0 / GCC 16.2.0): the _WIN32 branch, all 76 library sources
      and all 108 test and app sources compile with the warning subset as errors, and the
      tree links into 91 PE32+ executables and one shared library.
    • check-windows-wine.sh ran on the Linux host the enforced CI leg uses, against
      this exact commit: **85 test executables, 85 passed, 0 failed...
Read more

WebTransport Swift 1.3.8

Choose a tag to compare

@Pummelchen Pummelchen released this 13 Sep 12:07

A defect-fix release for issue #24. There are no wire-format changes and nothing is added to or removed from the public API.

The defect

A peer that ends a stream before sending the bytes that stream has to begin with was reported as QUICCodecError.truncated(needed: 1, available: 0). The runtime read the first chunk of a stream and dropped the endOfStream flag, so the codec's empty-buffer refusal was what a caller saw for a peer that FINed an inbound stream without writing to it — a message that reads like an internal truncation rather than a peer that is not following the protocol.

The fix

WebTransportNetworkRuntimeError.peerClosedStreamWithoutData(streamID:) names the stream and the cause. It is raised on the request stream, an inbound WebTransport stream, the peer's HTTP/3 control stream and a CONNECT response. A read that returns no bytes while the stream is still open is now waited out rather than returned, so "nothing yet" and "the peer is done" cannot be confused.

Verification

  • 300 package tests pass on the tagged revision (13d29fd), up from 297: the three additions are the regression tests for the issue #24 fix. Swift CI on 1.3.8 runs them, together with the peer-input fuzz corpus under AddressSanitizer and the in-process suite under Thread Sanitizer. That run is green on its second attempt: the first failed listenerServesMoreSequentialSessionsThanTheDefaultCeiling with a Network is down (ENETDOWN) from the runner, which did not reproduce here or on rerun and is filed in the project tracker as WT-185.
  • The published binaries pass both 40-scenario CLI conformance suites. Downloaded from this release, checked against SHA256SUMS, and run from the tagged checkout: passed=40 failed=0 total=40 for WebTransportClient and for WebTransportServer. The suites read Package.swift and Swift/build-release-apple-silicon.sh for two of the forty scenarios to assert properties of the source tree, so from a directory holding only the assets those two report a missing file and the suite says passed=38 failed=2; the 38 that exercise the transport itself pass in either directory. Making the tree-reading pair report "not in a checkout" rather than fail is filed in the project tracker as WT-186.
  • The published checksums reproduce from source. ./Swift/build-release-apple-silicon.sh builds both products twice from a clean tree and compares normalized Mach-O hashes (the linker's UUID is zeroed, since it differs per link and carries nothing); the SHA256SUMS attached here is that script's output for the tagged revision.
  • The interoperability evidence is one revision older than this release. The containerized five-implementation matrix in the wiki was last run against 1.3.5. 1.3.8 changes no wire encoding, so that evidence stands for the encoding, but it was not rerun for 1.3.8 and this page does not claim it was.

Assets

WebTransportClient and WebTransportServer are thin arm64 Mach-O binaries; SHA256SUMS covers both. GitHub does not carry a file's mode through a release upload, so make them executable, then clear the quarantine flag that ad-hoc signing without notarization leaves on them:

shasum -a 256 -c SHA256SUMS
chmod +x WebTransportClient WebTransportServer
xattr -d com.apple.quarantine WebTransportClient WebTransportServer
./WebTransportServer --scenario all

The two release scenarios that read the source tree need a checkout to pass; the rest run anywhere.

WebTransport Swift 1.3.7

Choose a tag to compare

@Pummelchen Pummelchen released this 13 Sep 01:00

A defect-fix release for issue #23: a listener stopped accepting for the rest of its life once it had served maxConcurrentConnections sessions in total. No wire-format changes; nothing is added to or removed from the public API.

The defect

WebTransportServer passed maxConcurrentConnections to NetworkListener.newConnectionLimit. On macOS 26 that limit is a budget for the listener's whole life rather than a concurrency cap: measured with a minimal listener, a limit of 2 hands exactly two connections to its handler and never a third, however long ago the first two ended, and a connection that ends never returns its slot. The default ceiling of 16 is low enough to reach in normal operation, and the failure was silent — the process stayed healthy, every other transport it served kept working, and each new WebTransport session timed out instead.

The fix

The listener now runs without that limit and the runtime counts in-flight connections itself. A connection is admitted only while fewer than maxConcurrentConnections are being served, and its slot is returned exactly once: when the session is closed, when the peer closes it, when a session is released without being closed, or when an accept fails. Connections over the ceiling are still refused before their handshake is driven, so the ceiling's effect is unchanged; only its lifetime was wrong.

Verification

  • 297 package tests pass, including two new regression tests: five sequential sessions against a ceiling of 2, and the reported shape — the default ceiling of 16 with 20 sequential sessions. The former fails against 1.3.6 on the third session with network runtime operation timed out after 5000ms.
  • A connection arriving while the ceiling is held by a live session is still refused, so the ceiling cannot be dropped by accident.
  • Both 40-scenario CLI conformance suites pass, the peer-input fuzz corpus passes under AddressSanitizer, the in-process suite passes under Thread Sanitizer, and the two release binaries were built twice and compared by normalized Mach-O hash.

Assets

WebTransportClient and WebTransportServer are thin arm64 Mach-O binaries; SHA256SUMS covers both. They are ad-hoc signed and not notarized, so Gatekeeper quarantines them on first run:

shasum -a 256 -c SHA256SUMS
xattr -d com.apple.quarantine WebTransportClient WebTransportServer
./WebTransportServer --scenario all

WebTransport Swift 1.3.6

Choose a tag to compare

@Pummelchen Pummelchen released this 12 Sep 00:29

A defect-fix release. There are no wire-format changes and nothing is removed from
the public API; the additions are one new validation entry point and one new error
case. Every item was found by an adversarial audit of the codecs, the runtime and the
command-line tools, and each was reproduced before being changed. The 1.3 series code
audits were performed by Claude Opus 5.

Fixed:

  • A PKCS#12 bundle whose certificate carries explicit elliptic-curve parameters — which is what the macOS system openssl (LibreSSL 3.3.6) emits for an EC key — no longer terminates the process. SecPKCS12Import raises an Objective-C NSInvalidArgumentException in that case rather than returning a status, and because Swift cannot catch Objective-C exceptions the failure escaped every do/catch and aborted the host application. The import now runs behind an exception boundary in a new WebTransportSecurityShim target, so listen(on:) throws a WebTransportNetworkRuntimeError naming the cause instead of killing the process. Reported in issue #20. Named-curve EC identities and RSA identities are unaffected; a bundle that previously crashed now reports: regenerate the certificate against a named curve, or use RSA.

  • ServerIdentityResolver now refuses an identity whose private key cannot be read, with the reason attached, rather than handing it to Network.framework and deferring the failure to the first peer handshake.

  • .certificateChain(chainDER:privateKeyDER:keyKind:) reports why a private key was rejected. The parameter must hold the representation SecKeyCopyExternalRepresentation returns for the private key, not the DER that openssl writes and not the public point: 97 bytes for P-256, 145 for P-384, and 199 for P-521. The previous failure was a bare OSStatus -50 that said nothing about the encoding; the error now names the expected form and length. The required encoding is documented on the case and on makePrivateKey, with a worked example in the wiki (issue #21).

  • The PKCS#12 import error no longer repeats Security.framework's raw exception reason. It is a fixed framework string that carries nothing a caller can act on, and the project's trust rules keep framework-supplied text out of public errors. The exception name is still reported, because it is stable and useful.

  • makeFromPKCS12 reads the imported identity through a type-identifier check rather than a forced cast.
    Added:

  • The repository's first non-Swift target, WebTransportSecurityShim, which exists only to give SecPKCS12Import an Objective-C frame where its exception can be converted into a status code. It is an internal target and is not part of the public product surface.

  • Regression fixtures and tests for the PKCS#12 import path, using bundles generated by the macOS system openssl. See Swift/Tests/WebTransportNetworkRuntimeTests/Resources/README.md.

  • The CRYPTO reassembly ceiling now bounds bytes waiting for a gap rather than every byte the connection has carried. Consumed bytes are retained so a conflicting retransmission is still detected, and counting them against the ceiling made it a lifetime cap: a peer that completed a large handshake could no longer deliver a legitimate post-handshake message such as a NewSessionTicket or KeyUpdate, and was disconnected instead. The count is computed once per frame and incremented locally from there, so a large frame stays linear.

  • An accept that times out no longer consumes the next connection. acceptSession bounds its wait on the connection queue with a timeout, and a cancelled CheckedContinuation is never resumed, so the abandoned waiter stayed at the head of the queue and was handed the next accepted connection — which was then dropped. Reachable from the documented accept loop, while true { try await acceptSession() }, whose one-second default plants an abandoned waiter on every idle timeout; once connections arrive slower than that, every connection is lost. The queue now tags each waiter so a caller that stops waiting removes its own entry and resumes it, which lets the abandoned task unwind; dropping the continuation instead would leak it. A cancelled accept also releases a connection that arrives after it gave up.

  • Shutdown now wakes a parked accept with a shutdown error instead of leaving it to block for its full timeout. That timeout was how the abandoned waiters above were created, so the two defects compounded.

  • connectSession cancels its inbound handler task on every failure path, not only when the peer rejects the session. The handler strongly retains the connection and Network.framework exposes no cancel(), so a task left running kept the connection and its socket alive. acceptSession already did this.

  • DATAGRAM and PING frames are no longer classified as retransmittable. RFC 9221 section 5.2 states DATAGRAM frames are not retransmitted on loss detection, and RFC 9000 section 13.3 notes a lost PING needs no repair; a caller resending everything in retransmittableFrames re-sent an unreliable datagram and delivered it twice.

  • NEW_CONNECTION_ID rejects a zero-length connection ID. RFC 9000 section 19.15 makes anything outside 1...20 a FRAME_ENCODING_ERROR, and only the upper bound was checked, so an empty connection ID was accepted and stored as a usable identity. The encoder enforces the same range, so the library can no longer produce a frame it would refuse to read.

  • HKDF-Expand is capped at 255 * HashLen (8,160 bytes for SHA-256) as RFC 5869 section 2.3 requires. The guard allowed up to UInt16.max, so a larger request wrapped the block counter to zero and returned bytes that look well-formed but are not the RFC's stream.

  • An explicit maxConcurrentConnections now overrides a supplied admission policy instead of being silently ignored. The override was gated on admission == .default, so a caller passing both a policy and an explicit limit had the limit dropped with no diagnostic, and an out-of-range limit was neither applied nor refused. It is now tied to the default argument value and validated on the same terms as the policy's own field.

  • Long-header packets with a cleared Fixed Bit or non-zero reserved bits are rejected. RFC 9000 section 17.2 requires such packets be discarded and RFC 9001 section 5.4 requires the reserved bits to be zero; the short-header decoder enforced the Fixed Bit but the long-header path enforced neither. The Retry decoder, which is also a long header, now applies the same two checks and rejects a zero-length Retry token, which RFC 9000 section 17.2.5 requires a client to discard.

  • An oversized datagram is reported instead of being silently truncated. The UDP receive path used recvfrom, which on this platform returns a short payload with a valid source and no indication that anything was lost — a QUIC parser would then read a packet that was never sent. It now uses recvmsg and rejects the datagram when the kernel sets MSG_TRUNC, which is the only form that reports truncation here. Note that passing MSG_TRUNC to recvfrom does not work: macOS documents the flag as "data discarded before delivery", and it is set on output rather than honoured on input.

  • QUICTransportParameters.validated() enforces the value rules of RFC 9000 section 18.2, which nothing did before: max_udp_payload_size below 1200, ack_delay_exponent above 20, max_ack_delay at or above 2^14, active_connection_id_limit below 2, a stateless_reset_token that is not 16 bytes, and original_destination_connection_id outside 1...20 are now rejected. A zero-length initial_source_connection_id or retry_source_connection_id is accepted, because RFC 9000 section 7.3 defines that as the encoding for a selected zero-length connection ID, and an explicit zero max_datagram_frame_size is accepted because RFC 9221 section 3 defines it as the default. It is opt-in rather than folded into decode, because decode is also the TLS-extension parser and must keep accepting parameters this build does not model.

  • --max-sessions is bounded at 65,536. The value sizes an array of tasks, so --max-sessions=1000000 committed memory proportional to the request until the process was killed; the parser accepted any positive integer. The bound stops that abuse and is deliberately well clear of Swift/run-soak.sh, which passes CONNECTIONS + 10.

  • --listen exits non-zero when it served no sessions. It previously exited zero after every session attempt failed, which a script or CI job reads as success.

Verification

  • 294 package tests, up from 280 at 1.3.5.
  • Both 40-scenario conformance suites pass, from source and from the shipped
    binaries.
  • CI green on all three jobs: build, tests and conformance; the AddressSanitizer
    fuzz corpus; and the Thread Sanitizer suite.
  • Strict memory-safety, complete-concurrency and explicit-Sendable diagnostics;
    the formatter gate; and manifest agreement between the two package manifests.
  • Public API compatibility against the 1.3.0 surface.

Artifacts

Artifact Platform SHA-256
WebTransportClient macOS arm64 fa07a2a1d2c1350f3eac03507abf3fdc9e3db9bf55e00e84b61735d110965555
WebTransportServer macOS arm64 956b08f7547ef7049a823d9bdeb00f3294f35c9b81978d0dbffe4e02f2249af4
SHA256SUMS Checksum manifest Included with the release

Both are thin arm64 Mach-O and run natively on every Apple Silicon Mac. They are
ad-hoc signed rather than Developer ID signed and are not notarized, so Gatekeeper
quarantines them on first run: check the sums, then
xattr -d com.apple.quarantine WebTransportClient WebTransportServer.

The builds are reproducible. ./Swift/build-release-apple-silicon.sh performs two
clean builds and compares normalized Mach-O hashes, so these checksums can be
rebuilt from source.

Run the conformance suites from the repository root. Run from the artifact
directory, two source-tree scenarios fail because they read Package.swift an...

Read more