Skip to content

Commit

Permalink
add timeout value to avoid site hanging when it cant connect
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargaj authored Jan 5, 2022
1 parent 04be41f commit 2d4760b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include_pouet_index/box-index-feed-poundsoff.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2d4760b

Please sign in to comment.