MINOR: server: srv_append_status refacto
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 14 Apr 2023 16:07:09 +0000 (18:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Apr 2023 12:36:45 +0000 (14:36 +0200)
commitf3b48a808e63f7e041326e0a71ad916b2600fad4
tree1cce3f6bb702d497263525c741c2c1094ba4e31e
parent9b1ccd732530d8d9a97e9800131456b9cb09d9f9
MINOR: server: srv_append_status refacto

srv_append_status() has become a swiss-knife function over time.
It is used from server code and also from checks code, with various
inputs and distincts code paths, making it very hard to guess the
actual behavior of the function (resulting string output).

To simplify the logic behind it, we're dividing it in multiple contextual
functions that take simple inputs and do explicit things, making them
more predictable and easier to maintain.
include/haproxy/check.h
src/check.c
src/server.c