]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h2: decode HEADERS frames before allocating the stream
authorWilly Tarreau <w@1wt.eu>
Sun, 23 Dec 2018 10:30:42 +0000 (11:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Dec 2018 10:45:00 +0000 (11:45 +0100)
commit5c8cafae396b5c3bcd28576263d575f9067675d1
treede90d2ff7757e830f1222d3c42f7a2f2e4eb2196
parent6fa380dbbaa9c8a5dca17654c6b5355dac2203ff
MEDIUM: mux-h2: decode HEADERS frames before allocating the stream

It's hard to recover from a HEADERS frame decoding error after having
already created the stream, and it's not possible to recover from a
stream allocation error without dropping the connection since we can't
maintain the HPACK context, so let's decode it before allocating the
stream, into a temporary buffer that will then be offered to the newly
created stream.
src/mux_h2.c