diff --git a/include/haproxy/event_hdl-t.h b/include/haproxy/event_hdl-t.h index a8062d13e..77e7d933c 100644 --- a/include/haproxy/event_hdl-t.h +++ b/include/haproxy/event_hdl-t.h @@ -23,6 +23,7 @@ # define _HAPROXY_EVENT_HDL_T_H #include +#include #include @@ -120,6 +121,7 @@ struct event_hdl_async_event */ void *data; void *private; + struct timeval when; struct event_hdl_sub_mgmt sub_mgmt; }; diff --git a/src/event_hdl.c b/src/event_hdl.c index 5ec81236c..7bf0f16d5 100644 --- a/src/event_hdl.c +++ b/src/event_hdl.c @@ -836,6 +836,7 @@ static int _event_hdl_publish(event_hdl_sub_list *sub_list, struct event_hdl_sub } new_event->type = e_type; new_event->private = cur_sub->hdl.private; + new_event->when = date; new_event->sub_mgmt = EVENT_HDL_SUB_MGMT_ASYNC(cur_sub); if (data) { /* if this fails, please adjust EVENT_HDL_ASYNC_EVENT_DATA in