Wrap OgHttp2Session callbacks with a latched_error_ check.

This CL introduces a new class EventForwarder that exists mostly to forward
SpdyFramerVisitorInterface events to its OgHttp2Session receiver. However, if
OgHttp2Session has encountered a connection-level error and called
LatchErrorAndNotify(), then the EventForwarder drops the event instead of
forwarding to OgHttp2Session. This functionality is analogous to

The immediate use case is to prevent calls to OnStreamEnd() after header
validation indicates a connection-level error, where OnStreamEnd() would result
in further (unwanted) processing on the connection. Another future potential
use case could be to prevent subsequent OnSetting() calls after one OnSetting()
call results in a connection-level error (e.g., future SETTINGS validation).

PiperOrigin-RevId: 407352242
7 files changed
tree: bd2ae8b8fef85ee3b06d93dd60f0a06a6e68bb3c
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  8. README.md


QUICHE stands for QUIC, Http/2, 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.