| commit | eec4080d1549e9e0423fcddf10172b7707d52ab9 | [log] [tgz] |
|---|---|---|
| author | rch <rch@google.com> | Tue Nov 25 18:16:17 2025 -0800 |
| committer | Copybara-Service <copybara-worker@google.com> | Tue Nov 25 18:17:07 2025 -0800 |
| tree | 8513c2fd45807f6d9237ddb93f5566e5eb04e8aa | |
| parent | 5d51e078453caf66cdc7f3b6abcf3c5b1926720a [diff] |
Make it a `QUIC_BUG` to access the `QuicSession`'s `QuicConfig` after the handshake completes, in preparation for dropping the config completely to safe memory. This CL moves the `QuicConfig` object into a new `SavedConfig` class which the session stores instead. This new class provides accessors to the underlying config which trigger the `QUIC_BUG` once the config has been "deleted". (The actual deletion will happen in a follow up CL). It also provide a new accessor for access to the config after deletion, which callers will need to use to avoid the `QUIC_BUG`. In a follow-up (flag-protected) CL, the `SavedConfig` will cache values from the `QuicConfig` when it is deleted, and return those instead. Project import generated by Copybara. PiperOrigin-RevId: 836879510
QUICHE stands for QUIC, Http, Etc. It is Google‘s production-ready implementation of QUIC, HTTP/2, HTTP/3, and related protocols and tools. It powers Google’s servers, Chromium, Envoy, and other projects. It is actively developed and maintained.
There are two public QUICHE repositories. Either one may be used by embedders, as they are automatically kept in sync:
To embed QUICHE in your project, platform APIs need to be implemented and build files need to be created. Note that it is on the QUICHE team's roadmap to include default implementation for all platform APIs and to open-source build files. In the meanwhile, take a look at open source embedders like Chromium and Envoy to get started:
To contribute to QUICHE, follow instructions at CONTRIBUTING.md.
QUICHE is only supported on little-endian platforms.
QUICHE has binaries that can run on Linux platforms.
Follow the instructions to install Bazel.
sudo apt install libicu-dev clang lld cd <directory that will be the root of your quiche implmentation> git clone https://github.com/google/quiche.git cd quiche CC=clang bazel build -c opt //... ./bazel-bin/quiche/<target_name> <arguments>
There are several targets that can be built and then run. Full usage instructions are available using the --helpfull flag on any binary.
Usage: quic_packet_printer server|client <hex dump of packet>
Usage: crypto_message_printer_bin <hex of message>
Usage: quic_client <URL>
quic_server: listens forever on --port (default 6121) until halted via ctrl-c.
masque_client: tunnels to a URL via an identified proxy (See RFC 9298).
Usage: masque_client [options] <proxy-url> <urls>
Usage: masque_server
web_transport_test_server: a server that clients can connect to via WebTransport.
moqt_relay: a relay for the Media Over QUIC transport for publishers and subscribers can connect to.
Usage: moqt_relay