]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: server: publish UP/DOWN events from STATE change
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 19 Apr 2023 20:34:01 +0000 (22:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
commitc249f6d96483862bf5b4b515f0857da76c9c401b
tree7edccad5ea6b4a13b6dbf2c8b38237c0f61ac3f9
parente3eea29f48d989b925320ee19445b9b6e9bec622
OPTIM: server: publish UP/DOWN events from STATE change

Reuse cb_data from STATE event to publish UP and DOWN events.
This saves some CPU time since the event is only constructed
once to publish STATE, STATE+UP or STATE+DOWN depending on the
state change.
src/server.c