From 9be9d072f1f62a84bc92950832cd9c6342e4e483 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 4 Sep 2023 13:46:23 +0200 Subject: [PATCH] X509\Sni: Ping DB connection before using it --- library/Icingadb/ProvidedHook/X509/Sni.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icingadb/ProvidedHook/X509/Sni.php b/library/Icingadb/ProvidedHook/X509/Sni.php index ef95c2ec6..4e42edbea 100644 --- a/library/Icingadb/ProvidedHook/X509/Sni.php +++ b/library/Icingadb/ProvidedHook/X509/Sni.php @@ -22,6 +22,8 @@ class Sni extends SniHook */ public function getHosts(Filter $filter = null): Generator { + $this->getDb()->ping(); + $queryHost = Host::on($this->getDb()); $queryHost->getSelectBase();