]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Don't stop anymore input processing when the max is reached
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Sep 2019 14:26:15 +0000 (16:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Sep 2019 08:30:11 +0000 (10:30 +0200)
commit6b32192cfb9df18de4fe3180e272ea88c0d8c1ff
treed5ae5a98e1f7e0494adc7e7c801570a4e2d1f94d
parent8427d0d6f8b17615be4cb2a80a8af794ae9c55d2
BUG/MINOR: mux-h1: Don't stop anymore input processing when the max is reached

The loop is now stopped only when nothing else is consumed from the input buffer
or if a parsing error is encountered. This will let a chance to detect cases
when we fail to add the EOM.

For instance, when the max is reached after the headers parsing and all the
message is received. In this case, we may have the flag H1S_F_REOS set without
the flag H1S_F_APPEND_EOM and no pending input data, leading to an error because
we think it is an abort.

This patch must be backported to 2.0. This bug does not affect 1.9.
src/mux_h1.c