From 270acce71ed2e723e4558638fcca4c953f272f44 Mon Sep 17 00:00:00 2001 From: "Joerg (DJ7NT)" Date: Thu, 4 Apr 2024 11:57:27 +0200 Subject: [PATCH] Hotfix, added timeout of 10sec to hamqth-functions --- application/libraries/Hamqth.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/libraries/Hamqth.php b/application/libraries/Hamqth.php index 195d284b0..137fe5a8c 100644 --- a/application/libraries/Hamqth.php +++ b/application/libraries/Hamqth.php @@ -17,6 +17,8 @@ class Hamqth { curl_setopt($ch, CURLOPT_URL, $xml_feed_url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); $xml = curl_exec($ch); curl_close($ch); @@ -40,6 +42,8 @@ class Hamqth { curl_setopt($ch, CURLOPT_URL, $xml_feed_url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); $xml = curl_exec($ch); curl_close($ch); @@ -66,6 +70,8 @@ class Hamqth { curl_setopt($ch, CURLOPT_URL, $xml_feed_url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); $xml = curl_exec($ch); curl_close($ch);