Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2018-08-21 16:50:53 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2018-08-22 09:02:31 +0300
commit1d997873750e5fdef1fe368b5296f4427dab3ea0 (patch)
tree73aaa6b05361a35c30b7a85d38dade44f320d678 /redis_cluster.c
parent399edf44f90f5c0b7be4f3bdefb6b402eda5f0af (diff)
Change connect/reconnect logic
Persistant connections can be closed via close method. Connection marked as failed only after reconnection attempts.
Diffstat (limited to 'redis_cluster.c')
-rw-r--r--redis_cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis_cluster.c b/redis_cluster.c
index d2788a7d..4271b9d9 100644
--- a/redis_cluster.c
+++ b/redis_cluster.c
@@ -542,7 +542,7 @@ PHP_METHOD(RedisCluster, __construct) {
/* {{{ proto bool RedisCluster::close() */
PHP_METHOD(RedisCluster, close) {
- cluster_disconnect(GET_CONTEXT() TSRMLS_CC);
+ cluster_disconnect(GET_CONTEXT(), 1 TSRMLS_CC);
RETURN_TRUE;
}