Skip to content

Known Limitations

André Borchert edited this page Aug 16, 2026 · 69 revisions

Known Limitations

This page defines the current boundary of the reference implementation.

Platform

  • The active runtime requires macOS 26, Xcode 26.6 or later, Swift 6.3.3 or later, Network.framework, Apple Security, CryptoKit, and Darwin APIs.
  • Published command-line artifacts are Apple Silicon Mach-O binaries.
  • The project does not currently provide Linux, Windows, browser, or cross-platform Swift runtime support.

API and runtime scope

  • Real client and server sessions use packet transport. Frame transport exists only inside lower-level conformance scenarios.
  • The high-level API exposes bidirectional streams; core unidirectional stream behavior is not yet surfaced through WebTransportSession.
  • The server admission layer is protocol policy plus connection concurrency and rate limits. It is not application authentication or authorization.
  • Local self-signed trust is development-only and restricted to loopback endpoints. The generated server certificate is likewise refused on non-loopback binds.
  • A listener's TLS identity is fixed when the listener is created. Network.framework builds listener parameters once per listener rather than once per connection, so a renewed certificate cannot be swapped in on a live listener; rotation replaces the listener and leaves the port briefly unbound.
  • Serving browsers requires settingsValidation: .interoperable. The default is .draft16Strict, which rejects peers implementing earlier revisions — browsers among them.

Session establishment reliability

Session establishment is reliable on a machine that is not saturated, and degrades under heavy CPU contention.

Host state 1.3.0 1.3.1
Idle (load ~1.5 on 8 cores) 0 / 4000 0 / 4000
Every core saturated (load ~30) 21 / 2400 (0.88%) 28 / 2400 (1.17%)

Measured on four otherwise unused Mac minis, paired and interleaved, using the published release binaries. The two releases are indistinguishable under load; the difference shown is noise.

Two real defects were found and fixed along the way — inbound streams discarded when they arrived before a handler was attached, and a stream delivered twice being processed twice — and the unknown WebTransport stream marker: 0 failure has not been observed since the second of those. Neither fix changes the load sensitivity above, and earlier figures on this page attributing a rate improvement to them were measured on a loaded development machine and did not reproduce. See Audit Phase 05.

The cause is below this package. Network.framework can drop an inbound QUIC stream on a saturated host. When the stream it drops is the peer's HTTP/3 control stream, neither end can proceed and both wait until they time out. This reproduces with a standalone NetworkListener<QUIC> and NetworkConnection<QUIC> — no HTTP/3, no WebTransport — losing one of three peer-opened streams in 13 of 1600 connections on saturated receivers, which is the rate seen here.

Nothing in this package can recover such a connection, because the stream is never resent. That is also why a longer deadline is wasted: measured under identical load, 6 second and 60 second timeouts failed at the same rate. The runtime reports WebTransportNetworkRuntimeError.peerControlStreamNotDelivered rather than a bare timeout, so the condition is recognisable in a log. Treat it as a signal to open a new connection, not to wait longer.

Reported to Apple as FB24354509, "Network.framework QUIC: an inbound stream is silently never delivered to inboundStreams on a busy host", with a standalone reproducer attached. Open as of 16 August 2026. The remedy is on the transport's side; this package can only recognise the condition and report it.

Note when investigating anything in this area: enabling the debug log suppresses the failure entirely, so it cannot be observed with instrumentation on the delivery path. See Audit Phase 05 for how it was caught, and Development and Testing for how to inspect a hung session without perturbing it.

Repository scope

  • C99/ and CPP/ are plans and skeletons, not working implementations.
  • The root and nested Swift package manifests have intentionally different product sets and must be kept synchronized for shared modules. Swift/check-manifest-sync.sh enforces this in CI.
  • Formatting is described by .swift-format and enforced in CI as a blocking gate. Run swift format --recursive --in-place Swift/Sources Swift/Tests before pushing.

Evidence boundaries

  • Releases 1.3.0 and 1.3.1 were published on 15 August 2026 and 1.3.3 on 16 August 2026. Release 1.2.0 passed the local four-proof interoperability gate on 11 August 2026.
  • The remote matrix was rerun on 16 August 2026 against current code and passed all 7 proofs across all 5 implementations: pywebtransport/aioquic (stream), web-transport-quinn (stream and datagram), web-transport-quiche (stream), hyperium/h3-webtransport (datagram), and erlang-webtransport (stream and datagram). Unlike the containerized matrix these ran with platform system trust against a CA-issued certificate over a routable path.
  • The remaining three proofs are unproven on current code: hyperium/h3-webtransport (datagram) and erlang-webtransport (stream and datagram) are not currently deployed. Their last evidence is 20 June 2026, predating the CONNECT path changes.
  • The containerized matrix and browser verification cover protocol interop only: loopback, self-signed certificates.
  • Approximately 21,000 of the Swift source lines have been reviewed by pattern analysis rather than read line by line. Passing tests establish that the code does what its authors intended, not that their intent matches the specification.
  • Generated proofs and release artifacts under .build/ are local evidence and are not source-controlled.

Changes requiring deliberate review

  • trust policy, certificate handling, TLS/QUIC key state, or public log redaction;
  • parser, buffering, flow-control, and resource limits;
  • supported platform or Swift/macOS baseline;
  • release reproducibility or interoperability gates;
  • claims that planned language ports are implemented.

Clone this wiki locally