Prevent QuicSimpleServerStream from sending two responses

If the request headers are invalid, QuicSimpleServerStream sends an error response. If the request was a form of CONNECT, this could lead us to incorrectly send two responses. This CL adds a bool to ensure we don't do that, and some DCHECKs for future sanity. This issue was found during the IETF 110 hackathon. This code is in test-only tools which are not used in production.

PiperOrigin-RevId: 360948797
Change-Id: Ia9dd74973efaf0cbd6f565db30ed46af31f4db1b
3 files changed
tree: 84d724c5cb088f3856955fbc3725c0f43aca4b4e
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

QUICHE

QUICHE (QUIC, Http/2, Etc) is Google‘s implementation of QUIC and related protocols. It powers Chromium as well as Google’s QUIC servers and some other projects. QUICHE is only supported on little-endian platforms.

Code can be viewed in CodeSearch in Quiche and is imported into Chromium.