From 2d4760bb919db5a9f0b8d5e33965eeccb686c2cc Mon Sep 17 00:00:00 2001 From: Gargaj Date: Wed, 5 Jan 2022 09:43:58 +0100 Subject: [PATCH] add timeout value to avoid site hanging when it cant connect --- include_pouet_index/box-index-feed-poundsoff.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include_pouet_index/box-index-feed-poundsoff.php b/include_pouet_index/box-index-feed-poundsoff.php index 0d8fbdf..0a1277c 100644 --- a/include_pouet_index/box-index-feed-poundsoff.php +++ b/include_pouet_index/box-index-feed-poundsoff.php @@ -36,6 +36,7 @@ function LoadFromDB() $this->jsonData = array(); $sideload = new Sideload(); + $sideload->options["connect_timeout"] = 3; $response = $sideload->Request('http://pounds-off.me/',"GET",array("format"=>"json")); if ($response) {