]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: properly handle the END_STREAM flag on empty DATA frames
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jan 2018 13:41:00 +0000 (14:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Jan 2018 13:41:00 +0000 (14:41 +0100)
commit4a28da1e9deadf0c542b957a323c1ca015c90fe4
treeae58bd62be2d1ec895a6256b6b245db554b14fad
parent8ec140604acfa15b976285f54755b2cf38552273
BUG/MEDIUM: h2: properly handle the END_STREAM flag on empty DATA frames

Peter Lindegaard Hansen reported a problem affecting some POST requests
sent by MSIE on 1.8.3. Lukas found that we incorrectly dealt with the
END_STREAM flag on empty DATA frames.

What happens in fact is that while we correctly report that we've read a
zero-byte frame, since commit 8fc016d ("BUG/MEDIUM: h2: support uploading
partial DATA frames") backported into 1.8.2, we've been able to return
without updating the parser's state nor checking the frame flags in this
case.

The fix is trival, we just need not to return too early.

This fix must be backported to 1.8.
src/mux_h2.c