mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-25 16:17:21 -04:00
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:
parent
39b6f5b04c
commit
6ac119ba2d
1 changed files with 3 additions and 0 deletions
|
|
@ -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 ? */
|
||||
|
|
|
|||
Loading…
Reference in a new issue