Three tests for the previous two commits, next to the existing abandon tests in multipath.rs: - abandoned_path_in_flight_retransmits_after_pto_delay: stream data lost on path 0, path 0 abandoned, all server-to-client traffic dropped from then on so the PathDrained cleanup never arms. Only the declare-in-flight-lost timer can free the data; asserts it has not fired below the 2*PTO lower bound (probed via handle_timeout without advancing the clock) and that the data arrives over path 1 after it. Fails on main (data stranded forever) and on the immediate variant (retransmit before the deadline). - abandoned_path_acked_in_flight_not_retransmitted: the flight's delayed acknowledgment is in the client's inbound queue when the path is abandoned; processing it during the window leaves nothing to declare lost, so no stream frame is sent twice. Fails on the immediate variant - this is the reason the declare-lost is deferred. - abandoned_path_partially_acked_retransmits_only_rest: two flights in the air at abandon time, the first acknowledged mid-window and the second lost; exactly one stream frame is retransmitted. Also covers the deadline surviving mid-window ACK processing (set_loss_detection_timer leaving abandoned paths alone). Verified against both predecessors: on main (5cf07f483) the first test fails, on the immediate declare-lost variant (630db780d) all three fail; on this branch 390/390 pass.
noq
General purpose implementation of the QUIC transport
protocol in pure
Rust. Noq is built as an async-friendly API in the noq crate on top
of a sans-io protocol library in noq-proto.
Noq started out as a fork of the excellent Quinn project. The main focus of development has been towards adding support for more QUIC (draft) extensions:
Features
- Easy to use futures-based async API.
- Client and server server functionality.
- 0-RTT and 0.5-RTT data support.
- Ordered and unordered stream reads.
- Custom and zero-length connection identifiers.
- Fully pluggable crypto API with a Rustls implementation using ring or aws-lc-rs provided by default for convenience.
- Broad platform support, including Linux, Windows, macOS, android, iOS and wasm.
Standards
The noq library aims to be correct implementation of various QUIC standards:
- Supports the core QUIC specifications:
- The standardised QUIC extensions:
- Draft extensions:
- qlog: Structured Logging for Network Protocols.
- QUIC Multipath.
- With experimental qlog support.
- QUIC Address Discovery (QAD).
- Using QUIC to traverse NATs (QNT).
Getting started
Examples at https://github.com/n0-computer/noq/blob/main/noq/examples
$ cargo run --example server ./
$ cargo run --example client https://localhost:4433/Cargo.toml
This launches an HTTP 0.9 server over the QUIC transport on the loopback address serving the current working directory, with the client fetching ./Cargo.toml. By default, the server generates a self-signed certificate and stores it to disk, where the client will automatically find and trust it.
License
Copyright 2025 The quinn developers Copyright 2025 N0, INC.
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.