]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: h2: reset the parser's state on mux buffer full
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Sep 2018 16:51:18 +0000 (18:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Sep 2018 16:55:29 +0000 (18:55 +0200)
commitb5b7d4a53225898245a3fff615e33b2143d4cc66
tree44a8cf8e0f007dd4f8aac7f9ed5f8e3f1d88c17e
parent70d0d18d41ac90f7947d0da1e716d6d706ca3d63
BUG/MAJOR: h2: reset the parser's state on mux buffer full

The h2 parser has this specificity that if it cannot send the headers
frame resulting from the headers it just parsed, it needs to drop it
and parse it again later. Since commit 8852850 ("MEDIUM: h1: let the
caller pass the initial parser's state"), when this happens the parser
remains in the data state and the headers are not parsed again next
time, resulting in a parse error. Let's reset the parser on exit there.

No backport is needed.
src/mux_h2.c