- Timeout now set at 30 sec like CURL is.
This commit is contained in:
1 parent
56ca1e2071
commit
f035fdf0a2
7 files changed
+9
-9
No files matched your search
@@ -66,11 +66,11 @@ class ApiRepository extends \Ulmus\Repository
|
||||
|
||||
$request = $this->callApiRequestCallback($request, $attribute);
|
||||
|
||||
$rest = $this->adapter->adapter()->connect();
|
||||
$transport = $this->adapter->adapter()->connect();
|
||||
|
||||
$rest->timeout = $attribute->timeout;
|
||||
$transport->timeout = $attribute->timeout;
|
||||
|
||||
$this->lastResponse = $response = $rest->fromRequest($request);
|
||||
$this->lastResponse = $response = $transport->fromRequest($request);
|
||||
|
||||
$response = $this->callApiResponseCallback($response, $attribute);
|
||||
|
||||
|
||||
Reference in new issue
Block a user