]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: do not use refcount in free_server in stopping mode
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Aug 2021 13:08:54 +0000 (15:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Aug 2021 15:53:30 +0000 (17:53 +0200)
commit13f2e2ceebf7b97baf5e035f821470ec7a360980
treeacf3f611586649cf4e9170b397f70a2a99dbd86e
parent7afa5c1843521ec3be7549592d2b38ccc9d68b73
BUG/MINOR: server: do not use refcount in free_server in stopping mode

Currently there is a leak at process shutdown with dynamic servers with
check/agent-check activated. Check purges are not executed on process
stopping, so the server is not liberated due to its refcount.

The solution is simply to ignore the refcount on process stopping mode
and free the server on the first free_server invocation.

This should not be backported, unless dynamic server checks are
backported. In this case, the following commit must be backported first.
  7afa5c1843521ec3be7549592d2b38ccc9d68b73
  MINOR: global: define MODE_STOPPING
src/server.c