BUG/MINOR: mux-h1: Save shutdown mode if the shutdown is delayed
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Oct 2021 13:36:38 +0000 (15:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Nov 2021 10:57:33 +0000 (11:57 +0100)
commit7700441a25092c3a67a8f04926a2ed6ede1c412a
tree291f2c8f5b59036f1a16b325ce1e545a0bb3b8dd
parent3a0c9981300c446ac08216c6b6dd39a76aa2bf4c
BUG/MINOR: mux-h1: Save shutdown mode if the shutdown is delayed

The connection shutdown may be delayed if there are pending outgoing
data. The action is performed once data are fully sent. In this case the
mode (dirty/clean) was lost and a clean shutdown was always performed. Now,
the mode is saved to be sure to perform the connection shutdown using the
right mode. To do so, H1C_F_ST_SILENT_SHUT flag is introduced.

This patch should be backported as far as 2.0.

(cherry picked from commit a85c522d42f866d57cd79335a945402b81cb3948)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit db451fb7d790d2675bfeda435b47a560e515b437)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_h1.c