summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
authorMasterklavi <masterklavi@gmail.com>2016-03-14 09:38:58 +0100
committerMasterklavi <masterklavi@gmail.com>2016-03-14 09:38:58 +0100
commitd3029505bc703c439d17dc902ad208574ba788b4 (patch)
tree4cd8daaea2d1355388ed2673c74a4d3d6713e70c /system/libraries/Cache
parent7755322d9457b1ba73f27e46e1d1fcfa62b46830 (diff)
Added the timeout value for the UNIX socket check
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php4
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']))