From 87ff31b0202b959dd78e1a84898e7fa679700bdb Mon Sep 17 00:00:00 2001 From: denisdulici Date: Thu, 6 Sep 2018 10:48:26 +0300 Subject: [PATCH] fixed #477 --- app/Utilities/Updater.php | 2 +- app/Utilities/Versions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Utilities/Updater.php b/app/Utilities/Updater.php index 3a93fff58..61e356976 100644 --- a/app/Utilities/Updater.php +++ b/app/Utilities/Updater.php @@ -107,7 +107,7 @@ class Updater $url = 'apps/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token']; } - $response = static::getRemote($url, ['timeout' => 30, 'track_redirects' => true]); + $response = static::getRemote($url, ['timeout' => 50, 'track_redirects' => true]); // Exception if ($response instanceof RequestException) { diff --git a/app/Utilities/Versions.php b/app/Utilities/Versions.php index 849362b31..c55b3e12d 100644 --- a/app/Utilities/Versions.php +++ b/app/Utilities/Versions.php @@ -91,7 +91,7 @@ class Versions { $latest = '0.0.0'; - $response = static::getRemote($url, ['timeout' => 1, 'referer' => true]); + $response = static::getRemote($url, ['timeout' => 10, 'referer' => true]); // Exception if ($response instanceof RequestException) {