MINOR: muxes/applet: Simplify checks on options to disable zero-copy forwarding
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Feb 2024 14:17:17 +0000 (15:17 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Feb 2024 15:39:46 +0000 (16:39 +0100)
commit4135266bb046baf07b32bc561c80d44b9434103d
tree19735d07cb0e30c592e42896c598c110d3bccba7
parent834db6c209e5e63495586263297739609552150c
MINOR: muxes/applet: Simplify checks on options to disable zero-copy forwarding

Global options to disable for zero-copy forwarding are now tested outside
callbacks responsible to perform the forwarding itself. It is cleaner this
way because we don't try at all zero-copy forwarding if at least one side
does not support it. It is equivalent to what was performed before, but it
is simplier this way.

(cherry picked from commit 081022a0c5877fde06910c02eb58a9a1a3f8c3a8)
[cf: changes about cache and stats applets were removed]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/mux_quic.c