From 6ac119ba2dac67c3d09386ed2162b339b8f49c44 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 23 Jan 2024 08:01:43 +0100 Subject: [PATCH] MINOR: applet: Automatically handle applets having more data for the stream This should simplify applets implementation. Of course an applet should still do it by itself if conditions to set this flag differ. --- src/applet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applet.c b/src/applet.c index 28341838c..abf861193 100644 --- a/src/applet.c +++ b/src/applet.c @@ -822,6 +822,9 @@ struct task *task_process_applet(struct task *t, void *context, unsigned int sta TRACE_POINT(APPLET_EV_PROCESS, app); + if (b_data(&app->outbuf) || se_fl_test(app->sedesc, SE_FL_MAY_FASTFWD)) + applet_have_more_data(app); + sc_applet_sync_recv(sc); /* TODO: May be move in appctx_rcv_buf or sc_applet_process ? */