]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stconn/applet: Add BUG_ON_HOT() to be sure SE_FL_EOS is never set alone
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Mar 2023 16:30:29 +0000 (17:30 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:57:06 +0000 (08:57 +0200)
commit8019f78326993a50458a69534c5b29e1266cbb05
tree194cf6d9e58d1ce52eaadbe582c91be056ed402c
parent7faac7cf347656e8ff74296cda45c3a1542c88b2
MINOR: stconn/applet: Add BUG_ON_HOT() to be sure SE_FL_EOS is never set alone

SE_FL_EOS flag must never be set on the SE descriptor without SE_FL_EOI or
SE_FL_ERROR. When a mux or an applet report an end of stream, it must be
able to state if it is the end of input too or if it is an error.

Because all this part was recently refactored, especially the applet part,
it is a bit sensitive. Thus a BUG_ON_HOT() is used and not a BUG_ON().
src/applet.c
src/stconn.c