]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: namespace: close open namespaces during soft shutdown
authorKrisztian Kovacs <krisztian.kovacs@oneidentity.com>
Tue, 24 Sep 2019 12:12:13 +0000 (14:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Sep 2019 21:33:52 +0000 (23:33 +0200)
commit710d987cd62ab0779418f14aa2168dc10ef6bac7
tree8b049c7ec0a6f68a840b3ef9e8e9ae94edea4c65
parentcec60056e495dc859ca6ebebfd8fa6b5b031ffa5
BUG/MEDIUM: namespace: close open namespaces during soft shutdown

When doing a soft shutdown, we won't be making new connections anymore so
there's no point in keeping the namespace file descriptors open anymore.

Keeping these open effectively makes it impossible to properly clean up
namespaces which are no longer used in the new configuration until all
previously opened connections are closed in the old worker process.

This change introduces a cleanup function that is called during soft shutdown
that closes all namespace file descriptors by iterating over the namespace
ebtree.
src/namespace.c