diff options
author | Masterklavi <masterklavi@gmail.com> | 2016-03-14 09:38:58 +0100 |
---|---|---|
committer | Masterklavi <masterklavi@gmail.com> | 2016-03-14 09:38:58 +0100 |
commit | d3029505bc703c439d17dc902ad208574ba788b4 (patch) | |
tree | 4cd8daaea2d1355388ed2673c74a4d3d6713e70c /system/libraries/Cache/drivers/Cache_redis.php | |
parent | 7755322d9457b1ba73f27e46e1d1fcfa62b46830 (diff) |
Added the timeout value for the UNIX socket check
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_redis.php')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index bae46bab4..1c12a0a22 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -104,9 +104,11 @@ class CI_Cache_redis extends CI_Driver try { + // for unix domain socket if ($config['host'][0] === '/') { - $config['port'] = 0; // for unix domain socket + $config['port'] = 0; + $config['timeout'] = 0; } if ( ! $this->_redis->connect($config['host'], $config['port'], $config['timeout'])) |