Skip to content

Commit

Permalink
Make timeout configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 4, 2015
1 parent e3b73e4 commit 2257542
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions framework/ManageSieve/lib/Horde/ManageSieve.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,17 @@ public function __construct($params = array())
{
$this->_params = array_merge(
array(
'host' => 'localhost',
'port' => 4190,
'user' => '',
'password' => '',
'authmethod' => self::AUTH_AUTOMATIC,
'euser' => null,
'bypassauth' => false,
'secure' => true,
'context' => array(),
'euser' => null,
'host' => 'localhost',
'logger' => null,
'password' => '',
'port' => 4190,
'secure' => true,
'timeout' => 5,
'user' => '',
),
$params
);
Expand Down Expand Up @@ -289,7 +290,7 @@ public function connect(
$this->_sock = new Client(
$this->_params['host'],
$this->_params['port'],
5,
$this->_params['timeout'],
$this->_params['secure'],
$this->_params['context']
);
Expand Down

0 comments on commit 2257542

Please sign in to comment.