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

Skip to content

Commit 31b0531

Browse files
Merge pull request phpredis#774 from CatKang/develop
Fix bug of unclosed socket stream in RedisCluster's construction
2 parents 17b1f42 + 04196ae commit 31b0531

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)