]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server/event_hdl: add SERVER_STATE event
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Apr 2023 19:28:07 +0000 (21:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
commite3eea29f48d989b925320ee19445b9b6e9bec622
treeca1c11dc2f5e9470502f2161bba59a42e019dcfd
parent306a5fc98724cb164ead712425c095c19c188274
MINOR: server/event_hdl: add SERVER_STATE event

Adding a new SERVER event in the event_hdl API.

SERVER_STATE is implemented as an advanced server event.
It is published each time the server's effective state changes.
(when s->cur_state changes)

SERVER_STATE data is an event_hdl_cb_data_server_state struct that
provides additional info related to the server state change, but can
be casted as a regular event_hdl_cb_data_server struct if additional
info is not needed.
include/haproxy/event_hdl-t.h
include/haproxy/server-t.h
src/event_hdl.c
src/server.c