From: Daniel Salzman Date: Wed, 10 Sep 2025 11:13:55 +0000 (+0200) Subject: exporter: add missing connection close X-Git-Tag: v3.5.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb1ea4dc2e687bbeb501874c80c875c90a20dd84;p=thirdparty%2Fknot-dns.git exporter: add missing connection close --- diff --git a/python/knot_exporter/knot_exporter/knot_exporter.py b/python/knot_exporter/knot_exporter/knot_exporter.py index f2c384d892..10a021963d 100755 --- a/python/knot_exporter/knot_exporter/knot_exporter.py +++ b/python/knot_exporter/knot_exporter/knot_exporter.py @@ -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):