]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: don't report an error after parsing a 100-continue response
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Nov 2017 14:41:32 +0000 (15:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Nov 2017 14:41:32 +0000 (15:41 +0100)
commit872855998bd03d5224e0e5cd6aef9b91e2a6de1d
tree61127b03df622adb54a9ca8fee68682d32fd5940
parentcea8537efdd8306742cda30faafb03732567a6ae
BUG/MEDIUM: h2: don't report an error after parsing a 100-continue response

Yves Lafon reported a breakage with 100-continue. In fact the problem
is caused when an 1xx is the last response in the buffer (which commonly
is the case). We loop back immediately into the parser with what remains
of the input buffer (ie: nothing), while it is not expected to be called
with an empty response, so it fails.

Let's simply get back to the caller to decide whether or not more data
are expected to be sent.

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