]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add timeout for requests to appstore
authorMorris Jobke <hey@morrisjobke.de>
Thu, 11 May 2017 22:48:53 +0000 (17:48 -0500)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 11 May 2017 22:49:03 +0000 (17:49 -0500)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/App/AppStore/Fetcher/Fetcher.php

index ccf5162ed82c4806fe1172caf76c1757f08ab075..3ab73d6b7f60d1a7606e028105ebec327809ed24 100644 (file)
@@ -78,7 +78,9 @@ abstract class Fetcher {
                        return [];
                }
 
-               $options = [];
+               $options = [
+                       'timeout' => 10,
+               ];
 
                if ($ETag !== '') {
                        $options['headers'] = [