]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: don't switch the state to HREM before end of DATA frame
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Dec 2017 17:45:08 +0000 (18:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Dec 2017 12:43:52 +0000 (13:43 +0100)
commitc4134ba8b0dacfe008a7974a8d31630534030ca7
treecb9c8cf6050565fda870c38b1584547d37774788
parent6847262211dd415140201ed312137055135f79cc
BUG/MEDIUM: h2: don't switch the state to HREM before end of DATA frame

We used to switch the stream's state to HREM when seeing and ES bit on
the DATA frame before actually being able to process that frame, possibly
resulting in the DATA frame being processed after the stream was seen as
half-closed and possibly being rejected. The state must not change before
the frame is really processed.

Also fixes a harmless typo in the flag name which should have DATA and
not HEADERS in its name (but all values are equal).

Must be backported to 1.8.
src/mux_h2.c