]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: use per-direction flags to indicate transitions
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 16:46:56 +0000 (17:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 16:51:00 +0000 (17:51 +0100)
commit34d234824d6587543a06769dec6e37d026b5baba
tree76f745d829b707470e485c23bfc9e0dd4549f969
parent831959300578212721f573fb3656768806675422
BUG/MEDIUM: mux-h1: use per-direction flags to indicate transitions

The H1 mux needs to store some information regarding the states that
were met (EOD, trailers, etc) for each direction but currently uses
only one set of flags. This results in failures when both the request
and the response use chunked-encoding because some elements are believed
to have been met already and a trailing 0 CRLF or just a CRLF may be
missing at the end.

The solution here consists in splitting these flags per direction, one
set for input processing and another set for output processing. Only
two flags were affected so this is not a big deal.

This needs to be backported to 1.9.
src/mux_h1.c