]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applets: Use channel's field to compute amount of data received
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Nov 2023 15:51:25 +0000 (16:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Dec 2023 09:24:41 +0000 (10:24 +0100)
commit5f99a37ae66e73a3d71bea39dc2cfba9af781a19
tree66b3e21cf1fb11e3368c5caf0bb91f35324cae8c
parent52c84ab0e0d30cf2a9ef2d069c0e695767a0c01e
MINOR: applets: Use channel's field to compute amount of data received

To be able to support endpoint-to-endpoint fast-forwarding (formerly called
mux-to-mux fast-forwarding), we cannot rely on data in the input channel to
compute amount of data the applet has produced.

The applet API is not really designed to know how many bytes are produced or
received at each call. Till now, it was not a problem because data always
passed through the channels. With E2E fast-frowarding, input data may be
immediately consumed. From the caller point of view (task_run_applet), there
is only the total field of the input channel that will change. So let's use
it now.
src/applet.c