MINOR: spoe: Add a pointer on the filter config in the spoe_agent structure

There was no way to access the SPOE filter configuration from the agent
object. However it could be handy to have it. And in fact, this will be
required to fix a bug.
This commit is contained in:
Christopher Faulet 2021-08-02 17:51:01 +02:00
parent d332f1396b
commit 434b8525ee
2 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,7 @@ struct spoe_agent {
} timeout;
/* Config info */
struct spoe_config *spoe_conf; /* SPOE filter config */
char *var_pfx; /* Prefix used for vars set by the agent */
char *var_on_error; /* Variable to set when an error occurred, in the TXN scope */
char *var_t_process; /* Variable to set to report the processing time of the last event/group, in the TXN scope */

View File

@ -4405,6 +4405,7 @@ parse_spoe_flt(char **args, int *cur_arg, struct proxy *px,
conf->id = strdup(engine ? engine : curagent->id);
conf->agent = curagent;
curagent->spoe_conf = conf;
/* Start agent's proxy initialization here. It will be finished during
* the filter init. */