]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h3: support HTTP request framing state
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 2 Aug 2022 09:32:45 +0000 (11:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Aug 2022 13:04:18 +0000 (15:04 +0200)
commit8d818c6eabf71f45d5cd46e136b60bcb4dde50d9
tree4ccd912bfd5084f7491a2f1c2aea5b653247b41b
parent2c77a5eb8e614db4abdb335edd1872c6dc51ccf7
MINOR: h3: support HTTP request framing state

Store the current step of HTTP message in h3s stream. This reports if we
are in the parsing of headers, content or trailers section. A new enum
h3s_st_req is defined for this.

This field is stored in h3s struct but only used for request stream. It
is left undefined for other streams (control or QPACK streams).

h3_is_frame_valid() has been extended to take into account this state
information. A connection error H3_FRAME_UNEXPECTED is reported if an
invalid frame according to the current state is received; for example a
DATA frame at the beginning of a stream.
include/haproxy/h3.h
src/h3.c