BUG/MINOR: htx: Preserve HTX flags when draining data from an HTX message
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 22 Apr 2021 07:43:47 +0000 (09:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Apr 2021 20:57:46 +0000 (22:57 +0200)
commit5e9b24f4b4e31958d97ce445bb993feb7ebc1421
tree28c8185e10f3060c00563be68ac27bd4e2928765
parent8f685c11e0641d478a03422a7e879cdf88333513
BUG/MINOR: htx: Preserve HTX flags when draining data from an HTX message

When all data of an HTX message are drained, we rely on htx_reset() to
reinit the message state. However, the flags must be preserved. It is, among
other things, important to preserve processing or parsing errors.

This patch must be backported as far as 2.0.
src/htx.c