English
ours-quinn-ext
libs/quinn-ext — what quinn lacks for the QUIC protocols hysteria, hysteria2 and tuic.
Modules
obfs— UDP sockets for quinn when an ordinary one does not fit: datagrams under the protocol's obfuscation (theObfstrait;Salamander— hysteria2,XPlus— hysteria) —ObfsSocket; and changing the server port (port hopping) —Hop.congestion—Switch/SwitchFactory: congestion control that can be switched to a fixed rate once the sides have agreed on it — Brutal from Hysteria (hysteria/congestion/brutal.go); until then — quinn's controller.set_rate— the switch.h3— exactly as much HTTP/3 (RFC 9114) as Hysteria2, XHTTP and DoH3 need: a control stream with settings (none; quic-go's server's; quic-go's client's for DoH3) and requests and responses in HEADERS and DATA frames. QPACK (RFC 9204) without the dynamic table, which the peer cannot use until this side has allowed it. Huffman — fromours-h2.stream::BiStream— a bidirectional QUIC stream in the form the relay takes it.varint—read: a QUIC variable-length integer off a stream; the codec isours_wire::varint::quic.
Who uses it
ours-quic (crates/quic) and the modules hysteria, hysteria2, tuic, dns (DoH3) and transport-xhttp (HTTP/3).
Specifics
Dependencies — quinn, quinn-proto, socket2, tokio, bytes, tracing, blake2 (Salamander), sha2, rand_core + getrandom, ours-atomic64 (Brutal's rate on MIPS), ours-h2, ours-wire (varint).
Tests
Unit tests in src/ (obfs, varint, h3, congestion). Compatibility with sing-box — tests/interop/protocols_singbox.py (see Checks).