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>2022-04-03 19:52:18 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2022-04-03 19:52:18 +0300
commit5a269ab6d0e21ddc3953792f1776ed70c7d45252 (patch)
tree68df7472b26de3386f09b3e3094b11d18fde211c /cluster_library.c
parent79313e792eb41c4dcf5ee96cbf24b881ae08d0a7 (diff)
Don't allow reconnect on read response
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.c b/cluster_library.c
index 0dee495d..8ebc8760 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -1161,7 +1161,7 @@ static int cluster_check_response(redisCluster *c, REDIS_REPLY_TYPE *reply_type)
CLUSTER_CLEAR_ERROR(c);
CLUSTER_CLEAR_REPLY(c);
- if (-1 == redis_check_eof(c->cmd_sock, 1) ||
+ if (-1 == redis_check_eof(c->cmd_sock, 1, 1) ||
EOF == (*reply_type = php_stream_getc(c->cmd_sock->stream)))
{
return -1;