Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1685337

Browse files
CatKangmichael-grunder
authored andcommitted
Fix bug of unclosed socket stream in RedisCluster's construction
1 parent 17b1f42 commit 1685337

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cluster_library.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ cluster_map_keyspace(redisCluster *c TSRMLS_DC) {
922922
if(!mapped && slots) {
923923
memset(c->master, 0, sizeof(redisClusterNode*)*REDIS_CLUSTER_SLOTS);
924924
}
925+
redis_sock_disconnect(*seed TSRMLS_CC);
925926
}
926927

927928
// Clean up slots reply if we got one

0 commit comments

Comments
 (0)