1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Add default timeout on http client

Issue #18
This commit is contained in:
Vincent Casse 2015-12-15 17:25:42 +01:00
parent ce12dcb280
commit 3f9aec3547

View File

@ -128,6 +128,8 @@ class Api
if (!isset($http_client)) {
$http_client = new GClient();
$http_client->setDefaultOption('timeout', 30);
$http_client->setDefaultOption('connect_timeout', 5);
}
$this->application_key = $application_key;