]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stconn/connection: Move shut modes at the SE descriptor level
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Apr 2024 06:51:56 +0000 (08:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2024 14:24:46 +0000 (16:24 +0200)
commitd2c3f8dde7c2474616c0ea51234e6ba9433a4bc1
treeee6c7314e55836c12708c552f19fb8d8b19d87bd
parent293b8f7530065445c965e1b62493cdbd32829e48
MINOR: stconn/connection: Move shut modes at the SE descriptor level

CO_SHR_* and CO_SHW_* modes are in fact used by the stream-connectors to
instruct the muxes how streams must be shut done. It is then the mux
responsibility to decide if it must be propagated to the connection layer or
not. And in this case, the modes above are only tested to pass a boolean
(clean or not).

So, it is not consistant to still use connection related modes for
information set at an upper layer and never used by the connection layer
itself.

These modes are thus moved at the sedesc level and merged into a single
enum. Idea is to add more modes, not necessarily mutually exclusive, to pass
more info to the muxes. For now, it is a one-for-one renaming.
include/haproxy/connection-t.h
include/haproxy/stconn-t.h
include/haproxy/stconn.h
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/mux_quic.c
src/stconn.c