From 9cf96bed93100b51f55f1eca8e6a67a0a05246fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Ondr=C3=A1=C4=8Dek?= Date: Wed, 30 Oct 2024 16:46:08 +0100 Subject: [PATCH] daemon/ratelimiting: fix runtime configuration reload --- python/knot_resolver/manager/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ def config_nodes(config: KresConfig) -> List[Any]: 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 @@ async def validate_config(self, _old: KresConfig, new: KresConfig) -> Result[Non 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")