]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: conn-stream: Invert conn-stream endpoint and its context
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Jan 2022 13:56:50 +0000 (14:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Apr 2022 13:10:14 +0000 (15:10 +0200)
commit9388204db1aa92e172a2eba1210fc803703f3132
tree483486c26d0c46c034688d2023261f9a64283740
parent2479e5f7754c9b1dcfe32cba1ff3e72c94792415
MAJOR: conn-stream: Invert conn-stream endpoint and its context

This change is only significant for the multiplexer part. For the applets,
the context and the endpoint are the same. Thus, there is no much change. For
the multiplexer part, the connection was used to set the conn-stream
endpoint and the mux's stream was the context. But it is a bit strange
because once a mux is installed, it takes over the connection. In a
wonderful world, the connection should be totally hidden behind the mux. The
stream-interface and, in a lesser extent, the stream, still access the
connection because that was inherited from the pre-multiplexer era.

Now, the conn-stream endpoint is the mux's stream (an opaque entity for the
conn-stream) and the connection is the context. Dedicated functions have
been added to attached an applet or a mux to a conn-stream.
21 files changed:
include/haproxy/conn_stream-t.h
include/haproxy/conn_stream.h
include/haproxy/mux_quic.h
src/backend.c
src/conn_stream.c
src/dns.c
src/flt_spoe.c
src/h3.c
src/hlua.c
src/hq_interop.c
src/http_client.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/mux_quic.c
src/peers.c
src/sink.c
src/stream.c
src/stream_interface.c
src/tcpcheck.c