]> git.kaiwu.me - haproxy.git/commit
DEBUG: stconn: Add a BUG_ON on shut flags when the endpoint is shut
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Jun 2026 08:44:59 +0000 (10:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jun 2026 06:55:56 +0000 (08:55 +0200)
commitc64e242b1ca383c441022a9138830ad106848527
tree910eaba5035ce53a16fd89db80efeefc2c1dd849
parent5530f50e4bc90f3f84fcf4db8afac24a0eb1f0c1
DEBUG: stconn: Add a BUG_ON on shut flags when the endpoint is shut

Whne the endpoint is shut (an applet or a mux), at least one of the SHW
flags must be set (SE_SHW_SILENT or SE_SHW_NORMAL). It is mandatory for
muxes to perform the shutdown. Otherwise, the shutdown could be ignored.

So let's add a BUG_ON() on it to be sure this never happen.
src/stconn.c