From 4203084b085e0f93bb9130c281362ea651d2140c Mon Sep 17 00:00:00 2001 From: YaacovHazan <31382944+YaacovHazan@users.noreply.github.com> Date: Sun, 9 Jul 2023 22:05:58 +0300 Subject: [PATCH] Issue #94, test hangs in cluster mode (#230) Co-authored-by: YaacovHazan --- shard_connection.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shard_connection.cpp b/shard_connection.cpp index b78ed312..bcf331ad 100644 --- a/shard_connection.cpp +++ b/shard_connection.cpp @@ -289,6 +289,10 @@ void shard_connection::disconnect() { } m_bev = NULL; + // empty pipeline + while (m_pending_resp) + delete pop_req(); + m_connection_state = conn_disconnected; // by default no need to send any setup request