From: Christopher Faulet Date: Fri, 10 Oct 2025 09:11:43 +0000 (+0200) Subject: MEDIUM: applet: Forward to applets X-Git-Tag: v3.3-dev10~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a0fe6e4602a689b8c086bac2fb68b67cf46c1ef;p=thirdparty%2Fhaproxy.git MEDIUM: applet: Forward to applets For now, no applets are using the value when consuming data. At least, as far as I know. But it remains a good idea to keep the applet API compatible. So now, the of the opposite side is properly forwarded to applets. --- diff --git a/src/applet.c b/src/applet.c index c7d5b4b41..b71096ae9 100644 --- a/src/applet.c +++ b/src/applet.c @@ -834,6 +834,8 @@ struct task *task_run_applet(struct task *t, void *context, unsigned int state) channel_check_idletimer(ic); + sc_ep_fwd_kip(sco, sc); + input = ic->total; output = co_data(oc); app->applet->fct(app); diff --git a/src/stconn.c b/src/stconn.c index a899648f0..4b27e5314 100644 --- a/src/stconn.c +++ b/src/stconn.c @@ -2247,6 +2247,8 @@ int sc_applet_send(struct stconn *sc) if (se_fl_test(sc->sedesc, SE_FL_ORPHAN)) return 0; + sc_ep_fwd_kip(sco, sc); + /* TODO: Splicing is not supported, so it is not possible to have FF data stuck into the I/O buf */ BUG_ON(sc_ep_have_ff_data(sc));