Call visitor_.OnInvalidFrame() for oghttp2 header errors.

This CL causes OgHttp2Session to call visitor_.OnInvalidFrame() when
encountering a stream-level header error, including header validation errors.
Based on the OnInvalidFrame() return value, OgHttp2Session can treat the error
as a stream-level error (RST_STREAM) or a connection-level error (RST_STREAM +
GOAWAY). This call and handling allow the following frame flooding tests
involving header validation to pass with cl/392724171:
  - Http2FloodMitigationTest.UpstreamZerolenHeaderAllowed
  - Http2FloodMitigationTest.UpstreamZerolenHeader

PiperOrigin-RevId: 407608309
3 files changed
tree: 1bd3b16c358b2b777ddb9f04f319947faaf48ac0
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/


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

QUICHE is only supported on little-endian platforms.