unsigned int li_ready; /* total number of listeners ready (>=LI_READY) */
unsigned int li_suspended; /* total number of listeners suspended (could be paused or unbound) */
+ event_hdl_sub_list e_subs; /* event_hdl: proxy's subscribers list (atomically updated) */
+
/* warning: these structs are huge, keep them at the bottom */
struct error_snapshot *invalid_req, *invalid_rep; /* captures of last errors */
#include <haproxy/cli.h>
#include <haproxy/counters.h>
#include <haproxy/errors.h>
+#include <haproxy/event_hdl.h>
#include <haproxy/fd.h>
#include <haproxy/filters.h>
#include <haproxy/frontend.h>
pool_destroy(p->req_cap_pool);
pool_destroy(p->rsp_cap_pool);
+ event_hdl_sub_list_destroy(&p->e_subs);
+
stktable_deinit(p->table);
ha_free(&p->table);
ha_free(&p->per_tgrp);
if (name && name[0] != '\0' && !(cap & PR_CAP_INT))
proxy_store_name(px);
- if (!(cap & PR_CAP_DEF))
+ if (!(cap & PR_CAP_DEF)) {
LIST_APPEND(&all_proxies, &px->global_list);
+ event_hdl_sub_list_init(&px->e_subs);
+ }
return 1;