]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: conn-stream: Don't erase endpoint flags on reset
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Apr 2022 16:25:24 +0000 (18:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Apr 2022 12:12:42 +0000 (14:12 +0200)
commita6c4a48341ce21f57f1b226fa0a047df3472c07e
tree967c9ef2c761bcb2c3e48af9f25ccf7af09c3d37
parent04994de6422efa2cb79fbbe3a4b91945bf54bdc8
BUG/MEDIUM: conn-stream: Don't erase endpoint flags on reset

Only CS_EP_ERROR flag is now removed from the endpoint when a reset is
performed. When a new the endpoint is allocated, flags are preserved. It is
the caller responsibility to remove other flags, depending on its need.

Concretly, during a connection retry or a L7 retry, we must preserve
flags. In tcpcheck and the CLI, we reset flags.

This patch is 2.6-specific. No backport needed.
src/backend.c
src/check.c
src/cli.c
src/conn_stream.c
src/http_ana.c