]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stconn: merge the app_ops and the data_cb fields
authorWilly Tarreau <w@1wt.eu>
Wed, 18 May 2022 08:17:16 +0000 (10:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 May 2022 17:33:34 +0000 (19:33 +0200)
commit2f2318df87a1023593462b262723c1120024f041
tree52d1c577f8336ae0412d962f82f66f9e2bace331
parentc086960a0324669d32dfd1526845828ce947ea2c
MEDIUM: stconn: merge the app_ops and the data_cb fields

For historical reasons (stream-interface and connections), we used to
require two independent fields for the application level callbacks and
the transport-level functions. Over time the distinction faded away so
much that the low-level functions became specific to the application
and conversely. For example, applets may only work with streams on top
since they rely on the channels, and the stream-level functions differ
between applets and connections. Right now the application level only
contains a wake() callback and the low-level ones contain the functions
that act at the lower level to perform the shutr/shutw and at the upper
level to notify about readability and writability. Let's just merge them
together into a single set and get rid of this confusing distinction.
Note that the check ops do not define any app-level function since these
are only called by streams.
12 files changed:
include/haproxy/conn_stream-t.h
include/haproxy/conn_stream.h
include/haproxy/cs_utils.h
src/applet.c
src/check.c
src/conn_stream.c
src/connection.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/mux_quic.c