8000 Fix bug of unclosed socket stream in RedisCluster's construction · jrtkcoder/phpredis@04196ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 04196ae

Browse files
committed
Fix bug of unclosed socket stream in RedisCluster's construction
1 parent 17b1f42 commit 04196ae

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)
0