Skip to content

Project Tracker

Pummelchen edited this page Sep 13, 2026 · 377 revisions

Project Tracker

The single place where known work on WebTransport is recorded: what is being worked on, what has been fixed, and what is known but not yet scheduled. Update this page whenever a change lands on main or a new defect or task is identified.

Last updated: 13 September 2026, at release 1.3.6. Records two bodies of work: the XAIOS-side C99 port of the TLS/QUIC layer (WT-44 to WT-53, on XAIOS main as of 471349d) and the portable C99 implementation in this repository under C99/ (WT-54 to WT-67, Phases 0 to 2 complete on main at 53a86ec). WT-84 records the Swift runtime defect fixed on main at d94f9f8 (issue #23).

How to use this page

This is the only project tracker for the repository. If a second list of tasks ever appears elsewhere, this page wins and the other one should be folded into it.

Current release: 1.3.6, published 12 September 2026 from commit 1643ed4. It is a defect-fix release closing the accept-queue defect and a set of codec, runtime and CLI conformance gaps found by the audit. Nothing in this list is a blocker for it; the open items below are future work.

  • A row leaves Open work when the change is merged to main and the documentation is updated, and moves to Resolved.
  • Numbering. Every item has a stable reference that never changes once assigned, so a commit message, an issue, or a review comment can point at one row and stay correct.
    • #N — a GitHub issue number, where one exists.
    • WT-N — a tracker-local item with no issue yet. Work discovered while doing something else is recorded here first and filed as an issue later if it warrants one; the WT-N reference stays valid either way.
    • Numbers are never reused and never renumbered. An answered question moves to Resolved like anything else rather than being deleted, so the numbering stays contiguous and the answer is still findable later.
  • Unknown problems belong here too. Anything noted but not understood — a suspicion that could not be reproduced, a behaviour that looks wrong but has no trigger yet — gets a row and a number, marked unverified in its Notes. A suspicion recorded is cheap; a suspicion forgotten is re-discovered later at full cost.
  • Severity follows the repository label scheme: P0 blocks a release or breaks core functionality or creates a security risk, P1 is required for MVP or release readiness, P2 is important but not blocking, P3 is polish or hardening.

Open work

Ref Severity Area Item Notes
WT-1 P2 transport The Retry Integrity Tag is never computed or verified, so a caller that treats decode as validation will accept a forged Retry packet. RFC 9001 section 5.8 requires the tag to be checked, and the packet type does not retain the original Destination Connection ID it would need as associated data. Needs an API decision: verifying the tag requires the original DCID, so the type or its decode signature has to carry it. Not a small change, and the shipped runtime uses Network.framework's QUIC rather than this codec.
WT-2 P3 api Several fixed codecs and the transport-parameter validator are not on the shipped path, which uses Network.framework's QUIC rather than this package's QUIC/HTTP-3 stack. The fixes are real but exercise only where an embedder constructs those types directly. Recorded so the coverage boundary is not mistaken later. Not a defect; a scope statement.
WT-3 P2 c99, crypto The C99 plan's OpenSSL 3.x dependency cannot be used on the target: XAIOS vendors BearSSL for its TLS 1.2 client and has no OpenSSL. The good news is that BearSSL is compiled in full by scripts/build-bearssl.sh — every src/**/*.c, with -std=c99 -ffreestanding -fno-builtin -Os -Wall -Wextra -Werror — so all 294 sources are available, not only the objects xapt reaches. Verified by reading the XAIOS tree. BearSSL supplies the primitives a TLS 1.3 implementation needs: AES-GCM (br_gcm_*), ChaCha20-Poly1305, HKDF (br_hkdf_*), SHA-256/384/512, X25519 (br_ec_c25519_*, curve 29), ECDSA verify on P-256/384/521 and RSA-PSS verify. The plan should name BearSSL instead of OpenSSL.
WT-4 P1 c99, transport The entire QUIC transport currently comes from NetworkListener<QUIC> and NetworkConnection<QUIC>. Nothing equivalent exists on the target platform, so this is new code written from the RFCs, not a port. Verified by measurement: 19 references across 2 files, one of which is 2,228 lines; the two files total roughly 3,340 lines of the 17,126-line source tree. This is the largest single workstream.
WT-5 P1 c99, crypto Apple-only crypto and key handling must be replaced with C99 implementations: 9 source files import Security or CryptoKit. Verified by grep over Swift/Sources. Covers AES-GCM, ChaCha20-Poly1305, HKDF, SHA-256, X25519 and ECDSA/Ed25519 verification.
WT-6 P0 c99, security BearSSL has no TLS 1.3, and QUIC requires TLS 1.3. The vendored copy is explicitly "for the xapt TLS 1.2 client". Answered on the XAIOS side, on main as of 787622c. userspace/wt/ now implements the whole client handshake in C99 over BearSSL's primitives: the key schedule (RFC 8446 section 7.1) in its two phases, QUIC traffic keys, Initial secrets, the Retry integrity tag and packet protection (RFC 9001 sections 5 and 6), handshake framing and the transcript, a ClientHello builder, ServerHello, EncryptedExtensions, CertificateRequest, Certificate and CertificateVerify parsers, x25519, Finished compute and verify, the CertificateVerify signature check, the pinned-key trust policy, and the state machine that sequences them. 1214 host checks against RFC 8446, 8448, 9001, 7301 and 7748 run in XAIOS CI and under AddressSanitizer and UndefinedBehaviorSanitizer, with the vectors extracted from the RFC text and two Python oracles recomputing them. The handshake completes end to end against a server flight built by an independent Python implementation (tests/security/generate_wt_quic_flight.py), which is what makes the client's own Finished a check rather than a tautology. What is not implemented: 0-RTT and the session tickets it needs, so there is no early-data encryption level; HelloRetryRequest, which is refused by name rather than handled; and client certificates, where the client answers a CertificateRequest with an empty Certificate (RFC 8446 section 4.4.2) and never a CertificateVerify. Recording B-79 in the XAIOS tracker, which stays open for those three. Five adversarial audits and the sanitizer runs found and closed a remote stack overflow in the Retry tag, a resumption secret derived from the wrong transcript, a packet number encoder using the wrong range, a decrypt path that failed on every packet, a CertificateVerify digest buffer sized for SHA-256 while offering SHA-512, a public key that pointed into a dead decoder frame, and an ALPN extension read in a format RFC 7301 does not define.
WT-9 P2 c99, tests The test suite that gives this port its correctness evidence cannot run on a freestanding target. The protocol stack needs a host build with libc and a test crypto backend, where the RFC vectors and the existing Swift suite act as an oracle. Verified by the plan's own completion criteria, which require RFC vectors, malformed-input corpora and interop runs. The target having a full libc makes this easier than expected: a host build is now a build-flag difference rather than a portability project.
WT-10 P2 c99 Size estimate for the C99 port: roughly 15,000 to 25,000 lines, in the nature of a multi-month effort. Partly verified, partly inferred. The Swift side is measured at 17,126 lines across 49 files. The QUIC-runtime-from-scratch and crypto/X.509 portions have no Swift counterpart to size against, so the range carries real uncertainty and should not be treated as a committed estimate.
WT-12 P1 c99, security The trust model is now largely answered. XAIOS already pins an operator-set RSA public key for xapt runtime identity verification rather than doing general path building, and BearSSL provides the X.509 parser and ECDSA/RSA-PSS verifiers regardless. Answered by reading XAIOS. The remaining question is narrower: does the WebTransport port adopt the same operator-pinned model, or validate chains against a configured trust set? Pinning removes general path building from scope and is consistent with how XAIOS already does TLS identity.
WT-13 P2 c99, docs The port's real dependency surface is ISO C99 plus POSIX.1-2008, not ISO C99 alone. Sockets (SOCK_DGRAM, sendto/recvmsg), poll, clock_gettime and close are POSIX, not C99; only printf/memcpy/int64_t and friends are ISO C99. Verified by compiling a probe, and now realised: src/runtime/udp.c is the one POSIX translation unit (with src/core/time.c), it uses sendto, recvmsg, poll, getsockname and close, and the build sets _POSIX_C_SOURCE=200809L for the library on Unix-but-not-Apple only. "100% C99 libc" in practice means C99 plus Unix, which is exactly what the port needs.
WT-14 P2 c99, config Feature-test-macro discipline is a real portability hazard, and it bit the probe. Defining _POSIX_C_SOURCE=200809L on this host removed INADDR_LOOPBACK, so the same source that compiles bare fails with the macro set. A different libc will have different defaults. Verified on the development host and answered by the policy now in the build: _POSIX_C_SOURCE=200809L is set for the library on Unix-but-not-Apple (documented in cmake/WTCompilerWarnings.cmake), and the source uses no BSD-only name -- the loopback addresses are written out as bytes rather than taken from INADDR_LOOPBACK. The rule the port follows: only names POSIX 2008 guarantees, so the macro can be set anywhere.
WT-15 P2 c99, transport The UDP socket surface had to be specified rather than assumed: datagram receive must report truncation, and IPv6 must work. Closed into WT-16 and WT-17, which record what XAIOS actually exposes now that its source has been read.
WT-36 P2 c99, transport Datagram receive must report truncation. QUIC needs to know when a datagram exceeded its buffer rather than silently parsing a short one. Implemented at d3eaacd: wt_udp_receive uses recvmsg and reports WT_ERR_TRUNCATED from MSG_TRUNC with the length zeroed, so a caller cannot parse the prefix of a packet; the sender's address is still reported. The documented alternative is sizing the buffer at WT_UDP_MAX_DATAGRAM (65507), which cannot truncate. An earlier row part follows: Answered on the XAIOS side, and the answer is narrower than the row assumed. A datagram that does not fit SOCKET_BUFFER_SIZE (16384) is dropped whole at the frame and counted, never queued in part, and that check runs against the same bound the read is clamped to. So a caller passing a buffer of SOCKET_BUFFER_SIZE cannot be truncated, and that is the whole maximum-datagram-size policy the row concluded would be needed. A caller passing less than that can still be truncated with nothing said: the syscall request structure has no flags field, and adding one is a syscall change rather than a stack one. Recorded in network_stack.c beside the check. The port should therefore size its receive buffer at the maximum rather than at the QUIC default.
WT-37 P3 c99, config XAIOS builds freestanding: -ffreestanding -fno-builtin -fno-pic -fno-pie, --target=aarch64-none-elf, with its own linker script and crt0.S, and picolibc is currently an empty placeholder directory built on demand by scripts/build-libc.sh. Verified. The port must build the same way, which means no dynamic loading, no errno-driven libc behaviour to rely on, and its own allocator strategy. This is a build-system constraint rather than a blocker, but every #include must come from the sysroot.
WT-38 P3 c99, transport XAIOS's network stack exists in kernel (kernel/net/: ipv4.c, ipv6.c, arp.c, ndp.c, routing.c, socket_buffer.c, net_device.h, plus e1000e, virtio_net, vmxnet3 drivers) with IPv6 dual-stack addressing through xaios_ip_addr_t. Verified. Recording it so the C99 plan's "platform runtime" section names the real backend instead of a generic BSD socket layer. Note the target's socket surface is a capability-checked syscall API (XAIOS_CAP_NET_SOCKET per process), not raw POSIX.
WT-39 P2 c99, transport NETWORK_MAX_LISTENERS is 16 and one row serves both TCP and UDP, so sixteen concurrent endpoints of either kind exhausts it. WT-35 made every datagram socket register one, which is what makes this reachable without anything asking for it. New, found while implementing WT-35 on the XAIOS side (webtransport branch, commit 4ddd7d8). The registration path logs network: UDP listener registry full and returns void, so a socket that is refused a row is left with no reply path and no error to the caller. QUIC's own connection counts are bounded well below sixteen in the current design, so nothing here reaches it; it is recorded because the limit is now on a path that did not ask for it.
WT-68 P2 c99, config The two C99 bodies of work now meet at an interface and do not share an implementation. The XAIOS side runs on vendored BearSSL; the portable C99/ tree links OpenSSL 3 (WT-3). C99/include/webtransport/crypto/crypto.h is deliberately the whole boundary -- one header, one file behind it -- but a BearSSL backend does not exist, and neither does the socket layer the portable tree would need on a target with no POSIX sockets. New, found by completing WT-55. Recorded rather than solved: the portable tree is the one the plan describes, and the XAIOS tree is already merged and tested on its own primitives, so nothing is blocked. The decision to make is whether C99/src/quic/ is ever built for XAIOS, which would mean a crypto_ bearssl.c behind this header plus a datagram layer over the capability-checked syscall API. Exit criterion: either a documented "the two trees stay separate" decision, or a BearSSL backend that passes the same RFC 9001 vectors as the OpenSSL one.
WT-69 P2 c99, transport WT-55 completed the key update derivation (wt_quic_packet_keys_update, checked against RFC 9001 A.5's quic ku) and the header documents that the lifecycle is not here: when to initiate an update, the key phase bit, and holding the previous keys so a reordered packet under the old phase still decrypts (RFC 9001 sections 6.1 to 6.4). New, found by completing WT-55, and it is a deliberate deferral rather than an oversight: the phase table's task list names the lifecycle, and the phase's completion criteria are the round trip and tamper rejection, both met. The state belongs to the Phase 4 connection runtime. Exit criterion: a key update is initiated and confirmed, a packet under the new phase decrypts, a reordered packet under the previous phase still decrypts within the RFC's limits, and an update that is refused for a missing confirmation is refused by name.
WT-71 P3 c99, tls The resumption master secret is derived and tested against RFC 8448, and nothing consumes it: there is no NewSessionTicket handling, so the C99 tree cannot resume a session and has no 0-RTT to offer (RFC 8446 sections 4.6.1 and 7.1). New, found by completing the key schedule. Recorded rather than solved: nothing in draft-16 requires resumption, so this is scope rather than a gap in the protocol -- but the derivation exists without a consumer, and the tracker is where that is visible. Exit criterion: either the server issues a ticket and the client resends a PSK with a binder (which needs the res binder and c e traffic labels this schedule deliberately omits), or an explicit decision that resumption is out of scope for the C99 tree.
WT-73 P1 c99, security, docs wt_quic_unprotect_frames returned WT_ERR_PROTOCOL when an AEAD tag did not verify, while status.h defines WT_ERR_AUTHENTICATION for exactly that case and says it is deliberately not WT_ERR_PROTOCOL, because the packet is well formed and simply was not produced by the holder of the key. Two documented contracts disagreed, and the connection runtime is where that bites: a caller cannot choose between discarding a datagram and closing a connection when both arrive as the same error. Fixed on main at 261c4e2. The function returns WT_ERR_AUTHENTICATION, its header says the choice of remedy is the caller's (RFC 9001 section 5.3 discards), and wt_quic_packet_read passes it through. The five Phase 2 expectations that pinned the old value were wrong and were the reason the defect survived: a test can hold a defect in place.
WT-79 P2 c99, transport RFC 9000 section 14.1's datagram-size rule is not implemented, in either half. A CLIENT must expand the payload of every UDP datagram carrying an Initial packet to at least 1200 bytes, and a SERVER must discard an Initial packet carried in a datagram smaller than that. The runtime does neither: its Initial packets are only as large as the frames in them (the handshake test's ClientHello datagram is 207 bytes), and a server reads an Initial packet out of any datagram that holds one. The two halves have to land together, because enforcing the server's discard without the client's padding would refuse the runtime's own handshake. New, found while looking for the next Phase 4 rule to enforce (ef89b92). It matters beyond tidiness: the 1200-byte floor is what makes the handshake's anti-amplification budget meaningful, since a server's response is bounded by three times what it received. Exit criterion: a client pads its Initial datagrams to at least 1200 bytes through the existing padding path (WT-72's helper is the same idea at a smaller scale), a server discards an Initial packet in a smaller datagram and counts it, the handshake test still completes with padded datagrams, and a test sends an undersized Initial to a server and requires the discard. A first attempt (ef89b92 working tree, reverted) wrote both halves and compiled, but the test binary then took more than 60 seconds where it had taken under one: THE FLOOR MAKES EVERY HAND-BUILT INITIAL PACKET IN THE EXISTING TESTS SUBJECT TO IT. test_discards sends Initial packets to a SERVER on purpose -- to have them refused for the address or the connection ID -- and the floor now refuses them first, so each following wt_udp_wait expires its full two-second timeout instead of returning immediately. The next attempt must give those packets the floor too (they are meant to test a different refusal) and re-check the loss tests, where 1200-byte Initial packets are ten to the initial congestion window. A SECOND ATTEMPT MEASURED THE TWO HALVES SEPARATELY, and the finding changed the shape of the task: with the CLIENT PADDING ALONE -- no server discard, so nothing can be refused for its size -- test_quic_connection still fails 76 of 401 checks ("processing nothing more: want 1, got 0" and "processing two datagrams in all: want 2, got 1" among them), while test_quic_handshake passes unchanged. So the entanglement is not only the server-side discard: the existing connection tests' expectations depend on the sizes the client sends, and WHERE has to be measured rather than reasoned about (run the test binary with a progress line per function, or bisect by returning the padding to one space at a time). The next attempt should instrument first, and treat "which existing expectations depend on packet size" as the real question. PARKED after a fourth attempt (829d300 working tree, reverted). The fourth attempt fixed the cause the third one exposed -- the padding was aimed at the floor by arithmetic, so the rebuilt packet came out two bytes above the path's maximum and every Initial packet a client sent was refused, which is also what made the earlier attempts look like hangs: nothing arrived, so every wait in the suite expired its full timeout. With the padding measured instead (pad, rebuild, adjust until the packet is between the floor and the ceiling), test_quic_handshake still passes its 240 checks and test_quic_connection still does not finish, so a fifth unknown remains in the connection tests. Decision: park this row. It is an anti-amplification hardening rule, not a prerequisite -- the handshake completes and interoperates without it, and no other task depends on it -- and four sessions' remaining budgets have now gone into it. The next session should spend its budget on WT-78 (the stream layer), which the phase and everything after it actually needs, and return to this row only with a session that can instrument the connection tests properly (per-test progress output, or bisecting the suite).
WT-80 P1 c99, transport Landing the receive-side rule that a first frame CREATES a stream (RFC 9000 section 3.2) exposed a SENDER bug: stream_id_allowed allowed this endpoint to send on a stream the peer had opened UNIDIRECTIONALLY, and a unidirectional stream carries data one way -- the peer's (section 2.1). test_quic_handshake.c had been sending on stream 3, the server's own unidirectional stream, as if it were the client's. A third finding: inserting stream-count grants into the handshake test moves a later MAX_STREAMS block's expectations, because the counts have to be granted BEFORE the STREAM frame that needs them. Closed on main at 0d927c7 (the twenty-fourth part re-landed): stream_id_allowed returns whether a peer's stream is bidirectional, the handshake test asserts the refusal instead of sending on stream 3, and its grants moved ahead of the frame that needs them. 38/38 suites pass, 75,820 checks. Committed from a fresh clone because this working copy's git object store became unreadable (pack read timeouts, 99% disk) -- the tree was recovered into a clean checkout, rebuilt and pushed from there.

Addendum: C99 flow control on receive (WT-81)

WT-81 (P1, c99, transport) -- CLOSED on main at eece125 (the twenty-sixth part): the connection now keeps connection-level flow control and charges every STREAM frame's data against both limits, choosing the RFC's error code by asking each limit in turn. The diagnosis below is what made it possible; it is kept because the reason the status cannot be trusted is worth remembering.

wt_quic_stream_on_data returns WT_ERR_PROTOCOL when the PER-STREAM limit is exceeded and when a final size contradicts what arrived, and it returns wt_quic_flow_on_received's limit status when the CONNECTION limit is exceeded. A caller therefore cannot map the status to a transport error code by itself. The connection must decide: compute end = offset + length (guarding the overflow) and report FLOW_CONTROL_ERROR when end > stream->max_stream_data or the status is a limit, and FINAL_SIZE_ERROR otherwise.

The attempt in round 53 was written, compiled and reverted after two checks failed: the receiver closed on a first 3-byte frame with FINAL_SIZE_ERROR (6) because the test's config.local_max_stream_data seed never applied, leaving the stream's limit at zero -- which the module was right to refuse, and which the wrong mapping then mislabelled. Next attempt: seed local_max_stream_data in both test config builders (open_pair in test_quic_connection.c and connection_config in test_quic_handshake.c, verifying each with a grep rather than assuming the edit landed), seed set_max_data on the receiver, and use the two-part mapping above. Exit criterion: a frame beyond either limit closes with FLOW_CONTROL_ERROR, a frame beyond a final size closes with FINAL_SIZE_ERROR, an ordinary frame is accepted and advances the connection's received total, and the suite is 38/38.

Also outstanding from round 52: the phase-4 row in this file still does not name the twenty-fifth part (RESET_STREAM and STOP_SENDING reaching their state machines); the Implementation Status page does.

Addendum: the stream layer, parts 25 and 26

  • Part 25 (31619f4): RESET_STREAM and STOP_SENDING reach their state machines as they arrive, with FINAL_SIZE_ERROR (RFC 9000 section 4.5) and STREAM_STATE_ERROR (section 19.5) for the states the RFC makes errors. The connection applies them before the caller's handler sees the frame: the handler observes the data, the state machine owns the lifecycle.

  • Part 26 (eece125, closes WT-81): received STREAM data is accounted against BOTH the stream's limit and the connection's, and the RFC's error code is chosen by asking each limit in turn.

  • Outstanding in the tracker file itself: the phase-4 row above does not name parts 25 and 26 (this addendum does), because two anchor-based edits to that row failed and appending is what works here.

  • Part 27 (d5ea4c0): the receive limits are raised as the data arrives -- MAX_DATA and MAX_STREAM_DATA for the next window -- which is RFC 9000 section 4.1's rule applied where arrival is consumption, because this runtime hands each frame's bytes to the caller's handler immediately. The test is end to end: the peer sends exactly what was granted, and reads the grant the connection sent by itself.

  • Part 28: a sender can cancel a stream -- wt_quic_connection_reset_stream sends RESET_STREAM with the final size computed from what was sent, and refuses a stream that is not this endpoint's to send on or one already finished. With the receive side handling an arriving reset, the phase's "cancellation" item has both directions.

  • Part 29 (847cedc): a lost stream packet names what to send again -- a STREAM send carries a retransmission descriptor (the stream, the offset, the length) which the connection hands to the owner when loss detection declares its packet lost. The same shape the CRYPTO stream uses. The test also records two rules worth keeping: an ACK must be in the SAME packet number space as the packets it acknowledges, and a burst of losses reports several packets in send order.

  • Part 30: STOP_SENDING, the other half of cancellation -- the receiver asks the peer to stop, once and only on a stream it receives on, with a frame that could not be sent leaving the stream unchanged.

  • Part 31: the Retry integrity tag (RFC 9001 section 5.8), with a property test. New task (WT-82, P2, c99, vectors): RFC 9001 appendix A.4's Retry packet is not extracted yet, so the tag's value is unchecked against the RFC; the extractor should derive the pseudo-packet, the tag and the ODCID from the RFC text the way the other vectors are, and the test should then assert the value.

  • Part 32: issuing connection IDs -- NEW_CONNECTION_ID with the issuer's own bound and the peer's active_connection_id_limit less the handshake's ID (RFC 9000 section 5.1.1), and the stateless reset token taken from the caller because section 10.3 requires it to be unguessable. Still open from WT-70: handling a RECEIVED NEW_CONNECTION_ID and RETIRE_CONNECTION_ID, and using a newly issued ID when the connection migrates.

  • Part 33: the peer's connection IDs are stored (NEW_CONNECTION_ID with FRAME_ENCODING_ERROR, PROTOCOL_VIOLATION and CONNECTION_ID_LIMIT_ERROR for the cases RFC 9000 section 19.15 and 5.1.1 name). Still open from WT-70: RETIRE_CONNECTION_ID, and actually USING an issued ID when the connection migrates.

  • WT-83 (P3, c99, transport): the decoder's refusal of a NEW_CONNECTION_ID whose retire_prior_to is above its sequence (RFC 9000 section 19.15's FRAME_ENCODING_ERROR) is NOT covered by a test, because the frame ENCODER refuses to produce such a frame -- this library refuses to encode what it would refuse to decode -- so the packet has to be written by hand, as the malformed-input corpus does for other frames. Exit criterion: a hand-built NEW_CONNECTION_ID with retire_prior_to > sequence closes the connection with FRAME_ENCODING_ERROR, alongside the same case in the malformed corpus.

    Also recorded: the commit for part 33 was pushed while one suite failed, because the shell gate matched "tests passed", which prints even when tests fail; the gate now checks for zero failures.

Addendum: the listener's connection ceiling is a concurrency cap (WT-84)

WT-84 (P1, swift, runtime) -- CLOSED on main at d94f9f8 (issue #23): a listener stopped accepting for the rest of its life once it had served maxConcurrentConnections sessions in total.

The runtime passed the policy's ceiling to NetworkListener.newConnectionLimit. Measured on macOS 26.6.2 with a minimal listener, that limit is a budget for the listener's whole life and not a concurrency cap: a listener built with a limit of 2 hands exactly two connections to its handler and never a third, even after both have ended and been cancelled, and an ended connection does not return its slot. The default ceiling of 16 is low enough to reach in normal operation — a desktop app that reconnects on each launch reaches it in a handful of runs — and the failure was silent: the process stayed healthy, every other transport it served kept working, and only new WebTransport sessions timed out. The issue was reported after that symptom was chased as a client-side problem; with the ceiling raised to 4096 the same loop got 90/90, which is what identified the limit as a lifetime budget.

The fix: the listener runs without a framework limit and the runtime counts in-flight connections itself (InteroperableQUICConnectionBudget). A connection is admitted only while fewer than the ceiling 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 — through a one-shot lease (InteroperableQUICConnectionLease). Connections over the ceiling are still refused before their handshake is driven, which is unchanged in effect from before.

Recorded alongside it, because it constrains any future teardown work: a started NetworkConnection cannot be cancelled. The Swift Network API exposes no cancel() on NetworkConnection (it does on the legacy NWConnection), and the new API ties a connection's life to its NetworkListener.run handler instead. This runtime takes the connection out of that handler after start(), which is what lets a session outlive the accept, so the framework keeps the QUIC connection until the peer closes it or it idles out. That is why the framework slot is not something this code can give back explicitly, and why maxConcurrentConnections is now the runtime's own accounting rather than the framework's. WT-85 records the consequence that remains open.

WT-85 (P3, swift, runtime): a session that ends cleanly leaves its QUIC connection to the framework instead of closing it, so both peers keep a connection until the peer closes it or QUIC's idle timeout expires. Nothing in the runtime can cancel it (WT-84), and the WebTransport session close it does send — CLOSE_WEBTRANSPORT_SESSION plus a FIN on the CONNECT stream — is a session-level ending that the transport does not treat as a reason to stop. The observable cost is bounded resource use, not incorrect behaviour, and the listener no longer depends on those connections ending. Exit criterion: either a supported way to end the underlying connection promptly is found and used in session teardown, or the idle timeout the server advertises is measured and documented as the bound.

Clone this wiki locally