summaryrefslogtreecommitdiffstats
path: root/lib/private/App/AppStore/Fetcher
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-05-12 12:37:18 +0200
committerGitHub <noreply@github.com>2017-05-12 12:37:18 +0200
commit48a9a4bd81ce80f2b42f56aa3f09a0b1e5e0f46a (patch)
treeba6c8844bf671d529e431322f59fd9527fcf8664 /lib/private/App/AppStore/Fetcher
parent98a7b346612c0327c871f4d10625d6aa388e55da (diff)
parentadad4281afb7cbff180770abec27fa73efa05e51 (diff)
downloadnextcloud-server-48a9a4bd81ce80f2b42f56aa3f09a0b1e5e0f46a.tar.gz
nextcloud-server-48a9a4bd81ce80f2b42f56aa3f09a0b1e5e0f46a.zip
Merge pull request #4825 from nextcloud/add-timeout-appstore
Add timeout for requests to appstore
Diffstat (limited to 'lib/private/App/AppStore/Fetcher')
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index 02c55ac9d91..e559cf83e6d 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -85,7 +85,9 @@ abstract class Fetcher {
return [];
}
- $options = [];
+ $options = [
+ 'timeout' => 10,
+ ];
if ($ETag !== '') {
$options['headers'] = [