diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-11 17:48:53 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-11 17:49:03 -0500 |
commit | 72943c99a4942bceaef750db6ea4eb7d582585d5 (patch) | |
tree | 67008cd57f367f7cc5f88101fe1796246b4d8870 /lib/private/App | |
parent | d83f1d96d4541e8e5a686be94b9c03ebb31f5f76 (diff) | |
download | nextcloud-server-72943c99a4942bceaef750db6ea4eb7d582585d5.tar.gz nextcloud-server-72943c99a4942bceaef750db6ea4eb7d582585d5.zip |
Add timeout for requests to appstore
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/Fetcher.php | 4 |
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 ccf5162ed82..3ab73d6b7f6 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -78,7 +78,9 @@ abstract class Fetcher { return []; } - $options = []; + $options = [ + 'timeout' => 10, + ]; if ($ETag !== '') { $options['headers'] = [ |