]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: update dynamic environment variables in external checks
authorCyril Bonté <cyril.bonte@free.fr>
Sat, 27 Dec 2014 21:28:38 +0000 (22:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Dec 2014 00:22:56 +0000 (01:22 +0100)
commitac92a065d73b2ba2370e9cce6e718eb3f4cae1e4
tree62c5e4a7cf186f7d9df9978847f306308ad7c2ad
parent56efc4896b71b0020a93744abce018835c16f346
MINOR: checks: update dynamic environment variables in external checks

commit 9ede66b0 introduced an environment variable (HAPROXY_SERVER_CURCONN) that
was supposed to be dynamically updated, but it was set only once, during its
initialization.

Most of the code provided in this previous patch has been rewritten in order to
easily update the environment variables without reallocating memory during each
check.

Now, HAPROXY_SERVER_CURCONN will contain the current number of connections on
the server at the time of the check.
include/types/checks.h
src/checks.c