Skip to content

Commit 28647e8

Browse files
authored
Narrowed down the problem. (#144)
The application will no longer abort but instead perform the benchmark without entering the endless loop. Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
1 parent 793d74d commit 28647e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shard_connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ void shard_connection::process_response(void)
438438
}
439439

440440
if (m_config->reconnect_interval > 0 && responses_handled) {
441-
if ((m_conns_manager->get_reqs_processed() % m_config->reconnect_interval) == 0) {
441+
if ((m_config->requests != m_conns_manager->get_reqs_processed()) && ((m_conns_manager->get_reqs_processed() % m_config->reconnect_interval) == 0)) {
442442
assert(m_pipeline->size() == 0);
443443
benchmark_debug_log("reconnecting, m_reqs_processed = %u\n", m_conns_manager->get_reqs_processed());
444444

0 commit comments

Comments
 (0)