Fix QUIC connection retransmission stats

Because QUIC retransmits data at the stream level (rather than packet level) since QUIC version > 39, the current implementation of bytes_retransmitted and packets_retransmitted is incorrect.

With this change:
- The packet now has a running total of "not retransmission" bytes. We use this new field to populate the `bytes_retransmitted` fields on the connection stats.
- The packet is considered a "retransmission" packet if ANY frame is a retransmission frame (rather than looking at the latest retransmittable frame).

PiperOrigin-RevId: 454625064
8 files changed
tree: 201fad310aac749578afae67136786e8629f0829
  1. build/
  2. quiche/
  3. .bazelrc
  4. BUILD.bazel
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
  8. WHITESPACE
  9. WORKSPACE.bazel
README.md

QUICHE

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.