MINOR: stconn: Add a flag to report EOS at the stream-connector level
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Apr 2023 14:17:32 +0000 (16:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Apr 2023 15:41:28 +0000 (17:41 +0200)
commitca5309a9a3366a7988ef83229b03730a166b6ba4
tree83438af9a33920a4a51006f845a1a49f154aad47
parent285aa40d352ae03e245c48333220b6f37ec74631
MINOR: stconn: Add a flag to report EOS at the stream-connector level

SC_FL_EOS flag is added to report the end-of-stream at the SC level. It will
be used to distinguish end of stream reported by the endoint, via the
SE_FL_EOS flag, and the abort triggered by the stream, via the
SC_FL_ABRT_DONE flag.

In this patch, the flag is defined and is systematically tested everywhere
SC_FL_ABRT_DONE is tested. It should be safe because it is never set.
13 files changed:
include/haproxy/channel.h
include/haproxy/sc_strm.h
include/haproxy/stconn-t.h
src/channel.c
src/cli.c
src/filters.c
src/flt_bwlim.c
src/http_ana.c
src/http_fetch.c
src/stats.c
src/stconn.c
src/stream.c
src/tcp_rules.c