]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
exporter: add missing connection close
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 10 Sep 2025 11:13:55 +0000 (13:13 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Wed, 10 Sep 2025 11:13:55 +0000 (13:13 +0200)
python/knot_exporter/knot_exporter/knot_exporter.py

index f2c384d8923b4f332e674f615b4aa1964a75074b..10a021963de243dec68477eba01b5d77e30afce6 100755 (executable)
@@ -154,6 +154,9 @@ class KnotCollector(object):
         for val in metric_families.values():
             yield val
 
+        ctl.send(libknot.control.KnotCtlType.END)
+        ctl.close()
+
 
 class KnotHelpFormatter(argparse.HelpFormatter):
     def _get_help_string(self, action):