commit | dc08ba8d796cc501c78c33cb99a4b7b1ad2c1c71 | [log] [tgz] |
---|---|---|
author | QUICHE team <quiche-dev@google.com> | Wed Nov 03 09:16:07 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Nov 03 09:17:47 2021 -0700 |
tree | bd2ae8b8fef85ee3b06d93dd60f0a06a6e68bb3c | |
parent | 09a52bf915e5095717ba34043157ce073b100bcc [diff] |
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 Http2Dispatcher::SpdyFramerAdaptor: http://google3/gfe/gfe2/http2/http2_dispatcher.h;l=975;rcl=406920946. 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
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.