Skip to content

Commit 028dc56

Browse files
committed
fix: increased timeout value
1 parent b17de97 commit 028dc56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

phpmyfaq/src/phpMyFAQ/Setup/Upgrade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/**
44
* The Upgrade class used for upgrading/installing phpMyFAQ from a ZIP file.
5+
*
56
* This Source Code Form is subject to the terms of the Mozilla Public License,
67
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
78
* obtain one at https://mozilla.org/MPL/2.0/.
@@ -113,7 +114,7 @@ public function checkFilesystem(): bool
113114
}
114115

115116
/**
116-
* Method to download a phpMyFAQ package, returns false if it doesn't work
117+
* Method to download a phpMyFAQ package, throws an exception if it doesn't work
117118
*
118119
* @throws Exception
119120
* @todo handle possible proxy servers
@@ -122,7 +123,7 @@ public function downloadPackage(string $version): string
122123
{
123124
$url = $this->getDownloadHost() . $this->getPath() . $this->getFilename($version);
124125

125-
$client = HttpClient::create(['timeout' => 30]);
126+
$client = HttpClient::create(['timeout' => 60]);
126127

127128
try {
128129
$response = $client->request('GET', $url);

0 commit comments

Comments
 (0)