diff --git a/apps/files_sharing/lib/External/Storage.php b/apps/files_sharing/lib/External/Storage.php index 43568ea6a2b01..ddff3904c6897 100644 --- a/apps/files_sharing/lib/External/Storage.php +++ b/apps/files_sharing/lib/External/Storage.php @@ -272,7 +272,7 @@ private function testRemoteUrl(string $url): bool { $client = $this->httpClient->newClient(); try { $result = $client->get($url, [ - 'timeout' => 10, + 'timeout' => 60, 'connect_timeout' => 10, ])->getBody(); $data = json_decode($result); diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php index 2e3703951320a..9ff872c919439 100644 --- a/lib/private/Http/Client/Client.php +++ b/lib/private/Http/Client/Client.php @@ -74,7 +74,7 @@ private function buildRequestOptions(array $options): array { $defaults = [ RequestOptions::VERIFY => $this->getCertBundle(), - RequestOptions::TIMEOUT => 30, + RequestOptions::TIMEOUT => 120, ]; $options['nextcloud']['allow_local_address'] = $this->isLocalAddressAllowed($options);