Skip to content

Commit

Permalink
调整Redis默认timeout值为null
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jun 14, 2019
1 parent 5b047fb commit eeb1f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Redis/RedisResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(\Imi\Pool\Interfaces\IPool $pool, RedisHandler $redi
*/
public function open()
{
$result = $this->redis->connect($this->config['host'] ?? '127.0.0.1', $this->config['port'] ?? 6379, $this->config['timeout'] ?? 2147483647);
$result = $this->redis->connect($this->config['host'] ?? '127.0.0.1', $this->config['port'] ?? 6379, $this->config['timeout'] ?? null);
if(isset($this->config['password']))
{
$result = $result && $this->redis->auth($this->config['password']);
Expand Down

0 comments on commit eeb1f56

Please sign in to comment.