From bec9cc46079476c8414ab7104516c5a9c966b90f Mon Sep 17 00:00:00 2001 From: YaacovHazan <31382944+YaacovHazan@users.noreply.github.com> Date: Wed, 11 Dec 2019 17:02:15 +0200 Subject: [PATCH] fix issue #94 cluster mode stuck (#106) add missing bufferevent_disable for connections that complete to send new requests --- shard_connection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shard_connection.cpp b/shard_connection.cpp index b9fe31c3..6fbcd856 100644 --- a/shard_connection.cpp +++ b/shard_connection.cpp @@ -465,8 +465,10 @@ void shard_connection::fill_pipeline(void) } // don't exceed requests - if (m_conns_manager->hold_pipeline(m_id)) + if (m_conns_manager->hold_pipeline(m_id)) { + bufferevent_disable(m_bev, EV_WRITE|EV_READ); break; + } // client manage requests logic m_conns_manager->create_request(now, m_id);