summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-12-07 10:00:26 +0100
committerGitHub <noreply@github.com>2023-12-07 10:00:26 +0100
commit41f31f2e1c282af33bcaf05000b53f2afd422426 (patch)
tree534d045ec01f63cfcc851d4a153ee8fed45916b6 /lib
parentd5a95825d34478d94db948f8a2f62cdc3358ee97 (diff)
parent838669242b5336235c576544b39f3023eb8afed0 (diff)
downloadnextcloud-server-41f31f2e1c282af33bcaf05000b53f2afd422426.tar.gz
nextcloud-server-41f31f2e1c282af33bcaf05000b53f2afd422426.zip
Merge pull request #42078 from nextcloud/backport/40071/stable27
[stable27] fix(updatecheck): Don't wait 120s for a response of updater.nextcloud…
Diffstat (limited to 'lib')
-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 2aab260716a..a54c08de476 100644
--- a/lib/private/Updater/VersionCheck.php
+++ b/lib/private/Updater/VersionCheck.php
@@ -123,7 +123,9 @@ class VersionCheck {
*/
protected function getUrlContent($url) {
$client = $this->clientService->newClient();
- $response = $client->get($url);
+ $response = $client->get($url, [
+ 'timeout' => 5,
+ ]);
return $response->getBody();
}