Increase default timeout for Bonnie API requests

This commit is contained in:
Thomas Bruederli 2015-03-31 15:10:42 +02:00
parent ae6ec80e44
commit c43040e4e1
2 changed files with 2 additions and 1 deletions

View file

@ -71,4 +71,5 @@ $config['kolab_bonnie_api'] = array(
'pass' => 'Welcome2KolabSystems',
'secret' => '8431f191707fffffff00000000cccc',
'debug' => true, // logs requests/responses to <log-dir>/bonnie
'timeout' => 30,
);

View file

@ -38,7 +38,7 @@ class kolab_bonnie_api
{
$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_authentication($config['user'], $config['pass']);