Allow NgHttp2Adapter to remove `sources_` map entries via CallbackVisitor.

This CL introduces NgHttp2Adapter::RemoveStream() and
CallbackVisitor::set_stream_close_listener() that can be used together to
remove entries from the per-stream `sources_` map when a stream is closed.
Namely, CallbackVisitor::set_stream_close_listener() can be called with a
lambda that invokes NgHttp2Adapter::RemoveStream() in codec_impl.cc.

This CL has a positive effect on memory profiles in loadtests for addressing
go/envoy-upstream/issues/19761.

PiperOrigin-RevId: 437827219
6 files changed
tree: 8694183541096efcecd03ce32aaec1df592cb6ec
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
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.