diff options
author | CatKang <beijingwangkang@hotmail.com> | 2016-03-25 14:51:18 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2016-03-29 22:14:32 +0300 |
commit | 2a8fd3f654e72656c92c362f9594612997e77cf3 (patch) | |
tree | 0cab0a4c93a9ab6c5f68d5f76df3cd42f58cdaeb /cluster_library.c | |
parent | 7eedd8578a4da8ac914cea8c217542a164b83900 (diff) |
Fix bug of unclosed socket stream in RedisCluster's construction
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c index 0fc7f7d2..586a1481 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -892,6 +892,7 @@ cluster_map_keyspace(redisCluster *c TSRMLS_DC) { if(!mapped && slots) { memset(c->master, 0, sizeof(redisClusterNode*)*REDIS_CLUSTER_SLOTS); } + redis_sock_disconnect(*seed TSRMLS_CC); } // Clean up slots reply if we got one |