From 5a269ab6d0e21ddc3953792f1776ed70c7d45252 Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Sun, 3 Apr 2022 19:52:18 +0300 Subject: Don't allow reconnect on read response --- cluster_library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cluster_library.c') 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; -- cgit v1.2.3