We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0e08a2 + 82c1bc7 commit 19aea0fCopy full SHA for 19aea0f
dev/tests/api-functional/framework/Magento/TestFramework/Authentication/Rest/OauthClient.php
@@ -24,6 +24,11 @@
24
*/
25
class OauthClient extends AbstractService
26
{
27
+ /**
28
+ * The maximum timeout for http request in seconds
29
+ */
30
+ const DEFAULT_TIMEOUT = 120;
31
+
32
/** @var string|null */
33
protected $_oauthVerifier = null;
34
@@ -36,6 +41,7 @@ public function __construct(
36
41
) {
37
42
if (!isset($httpClient)) {
38
43
$httpClient = new \OAuth\Common\Http\Client\StreamClient();
44
+ $httpClient->setTimeout(self::DEFAULT_TIMEOUT);
39
45
}
40
46
if (!isset($storage)) {
47
$storage = new \OAuth\Common\Storage\Session();
0 commit comments