Skip to content

Commit

Permalink
fix issue RedisLabs#94 cluster mode stuck
Browse files Browse the repository at this point in the history
add missing bufferevent_disable for connections that
complete to send new requests
  • Loading branch information
YaacovHazan committed Dec 11, 2019
1 parent f55b4b6 commit 3e41031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shard_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e41031

Please sign in to comment.