]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: init: completely deallocate unused peers
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 14:39:25 +0000 (16:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 14:43:48 +0000 (16:43 +0200)
commit47c8c029dba5386cc6ee6f49f411053de4e23e36
tree4fd840464dd4a75db52c695b60c5cbbacbc6fc24
parent20b7afbc14ca11c55919155e0b3d0d9aed33b9ab
MEDIUM: init: completely deallocate unused peers

When peers are stopped due to not being running on the appropriate
process, we want to completely release them and unregister their signals
and task in order to ensure there's no way they may be called in the
future.

Note: ideally we should have a list of all tables attached to a peers
section being disabled in order to unregister them and void their
sync_task. It doesn't appear to be *that* easy for now.
src/haproxy.c