From 6a0fe6e4602a689b8c086bac2fb68b67cf46c1ef Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 10 Oct 2025 11:11:43 +0200 Subject: [PATCH] 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. --- src/applet.c | 2 ++ src/stconn.c | 2 ++ 2 files changed, 4 insertions(+) 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)); -- 2.47.3