Skip to content

Known Limitations

André Borchert edited this page Nov 13, 2026 · 69 revisions

Known Limitations

These are user-visible limits of the 1.8 code, each with what it means in practice and what you can do about it. This page describes the limitation; the open work that would remove one is on the Project Tracker.

Platform

The Swift package is Apple-only

The Swift runtime needs macOS 26 or later, Xcode 27 or later, Swift 6.4, Network.framework, Apple Security and CryptoKit. CI has no Linux or Windows leg for it, and this is measured rather than assumed: on Linux with Swift 6.4, only WebTransportQUICCore and WebTransportHTTP3Core — the two wire-format cores — compile; the other targets fail on an Apple module (Darwin, CryptoKit, or CoreFoundation through the WebTransportSecurityShim header).

What it means. You cannot ship the Swift package on Linux or Windows. Workaround. Use the portable C99 library under C99/; it is the cross-platform path in this repository.

Prebuilt binaries are Apple Silicon only

The release archives carry thin arm64 Mach-O binaries (M1 and later), ad-hoc signed and not notarized.

What it means. Gatekeeper quarantines them on first run, and they do not run on Intel Macs. Workaround. Verify the .sha256, unpack, then xattr -dr com.apple.quarantine WebTransportClient WebTransportServer. There is no Intel build by design.

Protocol features deliberately absent

0-RTT is not implemented

There is no early-data encryption level and no session-ticket machinery, in either library. The Swift conformance catalog has a zero-rtt-settings scenario that asserts the draft's rule about remembered 0-RTT settings, but a peer cannot send 0-RTT data to either library.

What it means. Every session pays a full handshake; there is no resumption path for latency-sensitive reconnects. Workaround. None in this tree. Keep connections alive rather than reconnecting, or accept the handshake.

The HTTP/2 capsule binding is absent

This is a WebTransport-over-HTTP/3 implementation. The WebTransport-over-HTTP/2 capsule binding is not implemented and is not on the tracker.

What it means. A deployment that reaches WebTransport through an HTTP/2 front end or a legacy HTTP/2 capsule peer cannot use this library. Workaround. Terminate HTTP/3 at the edge, or use a different implementation for the HTTP/2 leg.

Server push and connection migration are out of scope

HTTP/3 push is refused deterministically rather than ignored. A QUIC connection has one peer address, given when it is attached; migration is a documented scope decision, not a gap. Path validation is driven by the connection.

What it means. A peer that expects push gets the HTTP/3 error the RFC names; a session cannot survive a client address change. Workaround. Re-establish the session after a network change.

Network.framework runtime (Swift)

A peer that does not release leaves the closing side's socket open until the idle timeout

The Swift Network API exposes no cancel() for a started NetworkConnection (only the legacy NW* classes have one) and Apple documents no other way to end one, so this runtime closes a connection by releasing the resources that keep it alive: the session's deinit, and — since WT-85 — the moment the session's capsule reader delivers the peer's WT_CLOSE_SESSION or observes the peer ending the CONNECT stream. Both spellings cancel the inbound task, which is what the framework closes the socket on: measured, the peer's connection fails within 50 ms of it (Swift/Tests/WebTransportNetworkRuntimeTests/WebTransportConnectionReleaseTests.swift).

So between two endpoints of this implementation a clean close ends both connections promptly, on the closing side as well, because the socket its peer closed is gone. Two measurements fixed the design, and both are worth keeping:

  • applicationError — the only close-shaped property Apple documents, "the QUIC application error code to send for the connection" — stores the code and leaves the connection .ready. It is a code carried when a connection ends, not a way to end it.
  • Releasing while a WT_CLOSE_SESSION capsule of one's own is still in flight would abandon it, and that capsule is what carries the peer the session's code and reason (draft-16 §5.4). That is why the release is triggered by the PEER's close and not by close().

What it means. Against a third-party peer the closing side still waits: a peer is entitled to keep its connection open after a session ends, the draft does not require it to close, and this endpoint will not close its own on its own initiative for the reason above, so the socket stays until QUIC's idle timeout (30 s by default). close() also does not return the connection to a listener's budget sooner than that; maxConcurrentConnections is counted by the runtime rather than handed to NetworkListener.newConnectionLimit, which caps a listener's whole life rather than its concurrency.

Workaround. Drop the session object (or let it go out of scope) once close() returns: the release path runs either way and the socket goes away immediately. Size maxConcurrentConnections and the idle timeout for the churn you expect.

The Swift client cannot set the TLS server name (SNI)

Which name the certificate must prove is the configured authority, and that half is fixed (WT-261, 07a06a8). When the authority names a host other than the address dialled, the client installs a QUIC.tls.certificateValidator that evaluates the platform's chain for that name with SecPolicyCreateSSL and the platform's own anchors: the name the certificate must prove changes, and nothing about who is trusted does. So connect(to: 203.0.113.10, authority: "wt.example.com") now completes the handshake where it used to fail it, and a certificate that does not cover the authority is still refused — measured against the five VPS peers with the address and the authority deliberately separated, 7 of 7 dialling 91.99.176.243 for a certificate that carries only pummelchen.91.99.176.243.nip.io, with --authority wrong.example.com (and the old behaviour of validating the dialled address) refused by a TLS alert error at the peer.

What the API still cannot express is the TLS server name itself. QUIC.tls offers localIdentity, certificateValidator, peerAuthentication, cipherSuites and ciphersuiteGroups, and no way for a caller to choose the name the ClientHello carries; it stays whatever the framework derives from the address it was given.

What it means. Name-based virtual hosting is not reachable by address: a server that selects its certificate from the requested server name presents its default certificate instead, and the connection is refused unless that certificate already covers the authority. Every other address-to-name split — a load balancer address, a tailnet name, an IP for a DNS-named certificate — works with system trust and needs no workaround.

Workaround. For virtual hosting, bind the name in DNS (or /etc/hosts) so the framework sends it. Swift/run-vps-third-party-interop.sh dialled the name for exactly this reason while the check was missing; it now dials WEBTRANSPORT_VPS_INTEROP_ADDRESS and names WEBTRANSPORT_VPS_INTEROP_AUTHORITY on purpose, because that split is the case the certificate check has to keep getting right.

About 1% of sessions fail to establish on a CPU-saturated host

Network.framework can drop an inbound QUIC stream on a saturated receiver. When the dropped stream is the peer's HTTP/3 control stream, both ends wait until they time out. It reproduces without any WebTransport code — a standalone NetworkListener<QUIC>/NetworkConnection<QUIC> harness loses one of three peer-opened streams in 13 of 1600 connections on a saturated receiver. The runtime reports WebTransportNetworkRuntimeError.peerControlStreamNotDelivered instead of a bare timeout. Reported to Apple as FB24354509.

What it means. On an otherwise idle machine, thousands of back-to-back loopback sessions complete without a failure; with every core saturated, roughly 1% fail to establish and cannot recover.

Workaround. Treat peerControlStreamNotDelivered as a signal to open a new connection. A longer timeout does not help — 6 s and 60 s failed at the same rate. Note also that enabling the debug log suppresses the failure, so do not measure this with instrumentation on the delivery path.

Identity and certificates

The development certificate is refused on a non-loopback bind

The built-in self-signed certificate exists so two endpoints can meet on localhost, 127.0.0.1 or ::1. A server that binds any other address with it fails at startup with an error naming the fix rather than starting unreachable. The C99 tools mirror this: --trust local-development is refused unless the address begins with localhost, 127.0.0.1 or [::1]. The certificate is also regenerated per construction, so its fingerprint is not stable and cannot be used as a pin.

What it means. You cannot serve a real client with the development identity. Workaround. Supply a real identity (.pkcs12 or .certificateChain in Swift; --trust system with a real certificate in C99).

A PKCS#12 identity must name its EC curve

macOS cannot build an identity from a certificate whose SubjectPublicKeyInfo carries explicit curve parameters (the full prime, coefficients, generator, order and cofactor) instead of a named-curve OID. The system /usr/bin/openssl on macOS is LibreSSL 3.3.6, which writes the explicit form, so the most obvious command produces a bundle that cannot be served. Importing one throws a WebTransportNetworkRuntimeError naming the cause.

What it means. A bundle that openssl produced on macOS may be refused. Workaround. Generate the certificate with OpenSSL 3.x, convert the key with openssl ec -in key.pem -param_enc named_curve -out key-named.pem, or use an RSA identity, which has no curve encoding.

.certificateChain wants Apple's private-key encoding

Despite the parameter name, privateKeyDER must be what SecKeyCopyExternalRepresentation returns for the private key — 97 bytes for EC P-256, 145 for P-384, 199 for P-521 — not the public point and not SEC1/PKCS#8 DER. A wrong encoding throws, and the error names the expected form and byte length.

What it means. An openssl key file cannot be passed directly. Workaround. Convert it to a PKCS#12 bundle and use .pkcs12, or build the key through SecKeyCreateRandomKey as shown in Getting Started.

The listener's identity is fixed when the listener is created

Network.framework builds listener parameters once per listener, so a renewed certificate cannot be swapped onto a live listener. rotateIdentity(of:to:on:gracePeriodMilliseconds:) replaces the listener and leaves the port briefly unbound.

What it means. Certificate rotation drops the listening socket for the grace window. Workaround. Rotate during a maintenance window, or run two listeners behind a load balancer.

API and session scope

Real sessions are packet transport only

Frame transport exists only inside lower-level conformance scenarios. WebTransportClient.connect refuses a non-packet configuration.

What it means. You cannot use the frame path as a production transport. Workaround. Use transport: .packet (the default).

Locally initiated unidirectional streams are not exposed

WebTransportSession.acceptUnidirectionalStream(maximumInitialBytes:) gives you a peer-initiated unidirectional stream as a WebTransportUnidirectionalStream, which is receive-only. Opening a locally initiated unidirectional stream is not part of the application-facing API.

What it means. One-way send streams are not available to app code. Workaround. Use a bidirectional stream and ignore the reverse direction, or use datagrams for unreliable one-way traffic.

Admission is protocol policy, not authentication

The server's admission layer enforces authority, path, optional origin, supported subprotocols, required settings, binding policy, concurrent connection count and an optional accept-rate limit. It is not application authentication or authorization.

What it means. It stops handshake abuse and policy mismatches; it does not identify a user. Workaround. Authenticate at the application layer, inside the session.

Serving a browser is not the default

settingsValidation defaults to .draft17Strict. Browsers are draft-16-era peers: they send :protocol = webtransport rather than the draft-17 webtransport-h3 token, and they advertise WebTransport through the earlier drafts' settings rather than the codepoint draft-17 registers, so a strict listener rejects them. Serving draft-16 peers -- browsers among them, and the C99 suite's own five interop peers -- is what .interoperable is for, and the same setting is how a Swift client speaks to a draft-16-era server.

What it means. Chrome (verified with serverCertificateHashes and a short-lived ECDSA P-256 certificate) needs an explicit opt-in. Workaround. Set settingsValidation: .interoperable.

C99 library

The server direction is proven against two independent clients, not five

The C99 client has been proven against all five independent implementations on a routable host -- 7 of the 7 Phase 11 proofs, every one under --trust system and every one on its first attempt in the 17 September 2026 re-run. The server side (wt-server-c99) has two independent clients that complete a session and exchange the message in both directions: pywebtransport/aioquic and quic-go/webtransport-go 0.11.1 (C99/tests/interop/peer/go-client/, run by C99/scripts/run-container-interop-server.sh). The second is not decoration: it found WT-258 on its first run -- the listener required a non-empty client Source Connection ID, which RFC 9000 §5.1 lets a client leave empty, so it dropped every datagram from such a client and reported only a timeout.

What it means. Two clients is a matrix, not the five the client direction has; a third server-side peer may still surface an incompatibility. Workaround. Add a peer to the server-direction runner before relying on a particular client; see Release and Interoperability.

MSVC and Clang-CL cannot build the sanitizer configuration

The Windows suite runs under all three compilers — mingw-w64 (cross-compiled and natively under MSYS2), MSVC and Clang-CL — but the sanitizer configuration is not available to the last two: CMake refuses WEBTRANSPORT_C99_SANITIZE with MSVC outright, and clang-cl rejects the flag pair the fuzz target wants (-fsanitize=fuzzer,address with the debug CRT). Sanitized runs are the Linux and macOS legs' job.

What it means. A memory defect that only ASan or UBSan reports is found on the POSIX legs rather than on Windows. Workaround. None needed: the same sources run under ASan+UBSan on macOS and on all three Linux legs.

Evidence boundaries

  • The containerized interop matrix and browser verification use loopback with self-signed certificates, so they prove protocol interoperability and not platform certificate validation. Only the routable-host runs use --trust system.
  • Generated proofs and release artifacts under .build/ are local evidence and are not source-controlled, so a claim is only as fresh as its run.
  • Approximately 21,000 of the Swift source lines were reviewed by pattern analysis rather than read line by line. Passing tests establish that the code does what its authors intended, not that the intent matches the specification.
  • Released binaries run --scenario all from an assets-only directory as passed=38 failed=0 skipped=2, exiting 3, because two scenarios assert properties of the source tree. That is a pass with two scenarios not attempted, not a failure.

Clone this wiki locally