]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int/conn-stream: Move stream-interface state in the conn-stream
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 Mar 2022 07:16:34 +0000 (09:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Apr 2022 13:10:15 +0000 (15:10 +0200)
commit62e757470aa6d7cd0b3279d076564ddbb8cf6447
treecacf4fc5ffdcbca7f7fef2c307e8e9e21f75f2c6
parent50264b41c8df42036204f97e97e3a42b923c93e8
MEDIUM: stream-int/conn-stream: Move stream-interface state in the conn-stream

The stream-interface state (SI_ST_*) is now in the conn-stream. It is a
mechanical replacement for now. Nothing special. SI_ST_* and SI_SB_* were
renamed accordingly. Utils functions to manipulate these infos were moved
under the conn-stream scope.

But it could be good to keep in mind that this part should be
reworked. Indeed, at the CS level, we only need to know if it is ready to
receive or to send. The state of conn-stream from INI to EST is only used on
the server side. The client CS is immediately set to EST. Thus current
SI_ST_* states should probably be moved to the stream to reflect the server
connection state during the establishment stage.
22 files changed:
addons/promex/service-prometheus.c
include/haproxy/channel.h
include/haproxy/conn_stream-t.h
include/haproxy/cs_utils.h
include/haproxy/stream-t.h
include/haproxy/stream.h
include/haproxy/stream_interface-t.h
include/haproxy/stream_interface.h
src/backend.c
src/cache.c
src/cli.c
src/conn_stream.c
src/debug.c
src/dns.c
src/flt_spoe.c
src/hlua.c
src/http_ana.c
src/peers.c
src/sink.c
src/stats.c
src/stream.c
src/stream_interface.c