From: Christopher Faulet Date: Tue, 23 Jan 2024 07:01:43 +0000 (+0100) Subject: MINOR: applet: Automatically handle applets having more data for the stream X-Git-Tag: v3.0-dev3~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ac119ba2dac67c3d09386ed2162b339b8f49c44;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/applet.c b/src/applet.c index 28341838ca..abf8611939 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 ? */