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>
Thu, 29 Apr 2021 09:11:54 +0000 (11:11 +0200)
commit2a6dcfa7c39d6a6434c8b3618be7962b73844e53
tree1c2337f4d049d3e25465ebd9cc7955d539d8d4e3
parentba502db76b123221e340c8c254276d386229f6d8
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.

(cherry picked from commit 5e9b24f4b4e31958d97ce445bb993feb7ebc1421)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 07b2b0aa146e1d24723192091e220e7ce50f2bfd)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit c965e0e990a4798f5dbd14055251da3395137c51)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/htx.c