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.
This commit is contained in:
Christopher Faulet 2024-01-23 08:01:43 +01:00
parent 39b6f5b04c
commit 6ac119ba2d

View file

@ -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 ? */