MEDIUM: applet: Add support for zero-copy forwarding from an applet
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 23 Jan 2024 06:56:34 +0000 (07:56 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Feb 2024 14:04:01 +0000 (15:04 +0100)
commit39b6f5b04cbb8f3c1ae54faa8cf6113a6ff8baf4
tree5fe28022ad865e8bbb6bb6eb43b3419792faa916
parent62a81cb6a6d1a735b9d48a17fb57d98a55c2bbde
MEDIUM: applet: Add support for zero-copy forwarding from an applet

Thanks to this patch, it is possible to an applet to directly send data to
the opposite endpoint. To do so, it must implement <fastfwd> appctx callback
function and set SE_FL_MAY_FASTFWD flag.

Everything will be handled by appctx_fastfwd() function. The applet is only
responsible to transfer data. If it sets <to_forward> value, it is used to
limit the amount of data to forward.
include/haproxy/applet.h
src/applet.c
src/stconn.c