BUG/MINOR: mux-h1: Be sure to only set CO_RFL_READ_ONCE for the first read
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Sep 2020 09:59:21 +0000 (11:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2020 12:07:29 +0000 (14:07 +0200)
commit69f2cb8df386cc5eee19f7d51da32570cbc1efe8
treeb53ae0e1dbf380c95e17e5910dfd50751b9afd39
parent58feb49ed2d718ac7f5ea20223562a52be85c121
BUG/MINOR: mux-h1: Be sure to only set CO_RFL_READ_ONCE for the first read

The condition to set CO_RFL_READ_ONCE flag is not really accurate. We must check
the request state on frontend connection only and, in the opposite, the response
state on backend connection only. Only the parsed side must be considered, not
the opposite one.

This patch must be backported to 2.2.
src/mux_h1.c