Merge pull request #19017 from nextcloud/bugfix/noid/increase-timeout-for-downloads

Increase the timeout for app downloads
This commit is contained in:
Roeland Jago Douma 2020-01-20 21:40:42 +01:00 committed by GitHub
commit d9a7e16a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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']);