Skip to content

Commit

Permalink
Merge pull request #1 from antoinedeschenes/socket-client-context
Browse files Browse the repository at this point in the history
Correct Horde\Socket\Client connect retry argument ordering
  • Loading branch information
mrubinsk committed Jan 25, 2018
2 parents d8472f0 + 43a54b1 commit 8c8b23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Socket/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ protected function _connect(
* these are likely transient issues. Retry up to 3 times in these
* instances. */
if (!$error_number && ($retries < 3)) {
return $this->_connect($host, $port, $timeout, $secure, ++$retries, $context);
return $this->_connect($host, $port, $timeout, $secure, $context, ++$retries);
}

$e = new Client\Exception(
Expand Down

0 comments on commit 8c8b23f

Please sign in to comment.