Increase default timeout for Bonnie API requests
This commit is contained in:
parent
ae6ec80e44
commit
c43040e4e1
2 changed files with 2 additions and 1 deletions
|
@ -71,4 +71,5 @@ $config['kolab_bonnie_api'] = array(
|
||||||
'pass' => 'Welcome2KolabSystems',
|
'pass' => 'Welcome2KolabSystems',
|
||||||
'secret' => '8431f191707fffffff00000000cccc',
|
'secret' => '8431f191707fffffff00000000cccc',
|
||||||
'debug' => true, // logs requests/responses to <log-dir>/bonnie
|
'debug' => true, // logs requests/responses to <log-dir>/bonnie
|
||||||
|
'timeout' => 30,
|
||||||
);
|
);
|
||||||
|
|
|
@ -38,7 +38,7 @@ class kolab_bonnie_api
|
||||||
{
|
{
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
$this->client = new kolab_bonnie_api_client($config['uri'], $config['timeout'] ?: 5, (bool)$config['debug']);
|
$this->client = new kolab_bonnie_api_client($config['uri'], $config['timeout'] ?: 30, (bool)$config['debug']);
|
||||||
|
|
||||||
$this->client->set_secret($config['secret']);
|
$this->client->set_secret($config['secret']);
|
||||||
$this->client->set_authentication($config['user'], $config['pass']);
|
$this->client->set_authentication($config['user'], $config['pass']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue