aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Updater
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-28 08:08:42 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-22 11:44:43 +0100
commit053157b87e77d98b24037390c52b85992db0340a (patch)
treeaef0af37c851ac116b9649a445826d9859cab8b1 /lib/private/Updater
parentbc1da2fa54d842be18b4faddf40fb64cc61d2811 (diff)
downloadnextcloud-server-053157b87e77d98b24037390c52b85992db0340a.tar.gz
nextcloud-server-053157b87e77d98b24037390c52b85992db0340a.zip
fix(updatecheck): Don't wait 120s for a response of updater.nextcloud.com
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Updater')
-rw-r--r--lib/private/Updater/VersionCheck.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Updater/VersionCheck.php b/lib/private/Updater/VersionCheck.php
index 97f770b6998..e37024ec2c2 100644
--- a/lib/private/Updater/VersionCheck.php
+++ b/lib/private/Updater/VersionCheck.php
@@ -127,7 +127,9 @@ class VersionCheck {
*/
protected function getUrlContent($url) {
$client = $this->clientService->newClient();
- $response = $client->get($url);
+ $response = $client->get($url, [
+ 'timeout' => 5,
+ ]);
return $response->getBody();
}