mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 06:22:13 +02:00
MINOR: applet: Add a flag to know an applet is using HTX buffers
Multiplexers already explicitly announce their HTX support. Now it is possible to set flags on applet, it could be handy to do the same. So, now, HTX aware applets must set the APPLET_FL_HTX flag.
This commit is contained in:
@@ -11611,7 +11611,7 @@ static enum act_parse_ret action_register_service_http(const char **args, int *c
|
||||
|
||||
/* Add applet pointer in the rule. */
|
||||
rule->applet.obj_type = OBJ_TYPE_APPLET;
|
||||
rule->applet.flags = APPLET_FL_NEW_API;
|
||||
rule->applet.flags = APPLET_FL_NEW_API|APPLET_FL_HTX;
|
||||
rule->applet.name = fcn->name;
|
||||
rule->applet.init = hlua_applet_http_init;
|
||||
rule->applet.rcv_buf = appctx_htx_rcv_buf;
|
||||
|
||||
Reference in New Issue
Block a user