From c7e81c2c52332d61d99585e710ac06adfbcfc53e Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Mon, 20 Jan 2020 16:20:09 +0100
Subject: [PATCH] Increase the timeout for app downloads

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 lib/private/Installer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index d583dd20761..790bec0ddd5 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -271,7 +271,7 @@ class Installer {
 				// Download the release
 				$tempFile = $this->tempManager->getTemporaryFile('.tar.gz');
 				$client = $this->clientService->newClient();
-				$client->get($app['releases'][0]['download'], ['save_to' => $tempFile]);
+				$client->get($app['releases'][0]['download'], ['save_to' => $tempFile, 'timeout' => 120]);
 
 				// Check if the signature actually matches the downloaded content
 				$certificate = openssl_get_publickey($app['certificate']);
-- 
GitLab