]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Fri, 29 Oct 2021 13:06:31 +0000 (15:06 +0200)
commita85c522d42f866d57cd79335a945402b81cb3948
tree262f6e4ae400c275d7c0a4e6107ef531d29a4d62
parente09efaa7cb9bd9f60914be5be693c08e11c8b9dc
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.
src/mux_h1.c