]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-pt: Fix condition to perform a shutdown for writes in mux_pt_shut()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Sep 2024 13:19:51 +0000 (15:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Sep 2024 13:25:05 +0000 (15:25 +0200)
commite1cae428791abf4e4fdf3969761eaaafd45df636
tree8f7d9da5639a66cd71cfa20b511c35ae18bab960
parent7e19432fd41e9c0146f0227b43d0dd3dc740e20b
BUG/MEDIUM: mux-pt: Fix condition to perform a shutdown for writes in mux_pt_shut()

A regression was introduced in the commit 76fa71f7a ("BUG/MEDIUM: mux-pt:
Never fully close the connection on shutdown") because of a typo on the
connection flags. CO_FL_SOCK_WR_SH flag must be tested to prevent a call to
conn_sock_shutw() and not CO_FL_SOCK_RD_SH.

Concretly, most of time, it is harmeless because shutdown for writes is
always performed before any shutdown for reads. Except in case describe by
the commit above. But it is not clear if it has an impact or not.

This patch must be backported with the commit above, so as far as 2.9.
src/mux_pt.c