MEDIUM: tree-wide: Move flags about shut from the channel to the SC
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 3 Apr 2023 16:32:50 +0000 (18:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:57:06 +0000 (08:57 +0200)
commit87633c3a11237929f6314a56bce80e489fa85aaa
tree6a7df20c45230f74ffac85377aba068067046715
parent904763f5622e6b49a6ca44a4ab0b6c88fb535b04
MEDIUM: tree-wide: Move flags about shut from the channel to the SC

The purpose of this patch is only a one-to-one replacement, as far as
possible.

CF_SHUTR(_NOW) and CF_SHUTW(_NOW) flags are now carried by the
stream-connecter. CF_ prefix is replaced by SC_FL_ one. Of course, it is not
so simple because at many places, we were testing if a channel was shut for
reads and writes in same time. To do the same, shut for reads must be tested
on one side on the SC and shut for writes on the other side on the opposite
SC. A special care was taken with process_stream(). flags of SCs must be
saved to be able to detect changes, just like for the channels.
26 files changed:
include/haproxy/channel-t.h
include/haproxy/channel.h
include/haproxy/sc_strm.h
include/haproxy/stconn-t.h
src/activity.c
src/applet.c
src/backend.c
src/channel.c
src/cli.c
src/debug.c
src/filters.c
src/flt_bwlim.c
src/http_ana.c
src/http_fetch.c
src/map.c
src/mworker.c
src/proxy.c
src/quic_conn.c
src/ring.c
src/ssl_ckch.c
src/ssl_crtlist.c
src/stats.c
src/stconn.c
src/stick_table.c
src/stream.c
src/tcp_rules.c