From: Lukáš Ondráček Date: Wed, 30 Oct 2024 15:46:08 +0000 (+0100) Subject: daemon/ratelimiting: fix runtime configuration reload X-Git-Tag: v6.0.9~1^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a75e48e150d291162c0edd992109fd3088ba71e8;p=thirdparty%2Fknot-resolver.git daemon/ratelimiting: fix runtime configuration reload --- diff --git a/python/knot_resolver/manager/manager.py b/python/knot_resolver/manager/manager.py index afc5e6780..f9c687087 100644 --- a/python/knot_resolver/manager/manager.py +++ b/python/knot_resolver/manager/manager.py @@ -127,6 +127,7 @@ class KresManager: # pylint: disable=too-many-instance-attributes config.logging, config.monitoring, config.lua, + config.rate_limiting, ] # register and immediately call a verifier that validates config with 'canary' kresd process @@ -215,7 +216,7 @@ class KresManager: # pylint: disable=too-many-instance-attributes if _old.rate_limiting != new.rate_limiting: logger.debug("Unlinking shared RRL memory") try: - os.unlink(str(_old.rundir) + "/rrl") + os.unlink(str(_old.rundir) + "/ratelimiting") except FileNotFoundError: pass logger.debug("Testing the new config with a canary process")