From 691f18c4de364bc2e863aa13f514abbe291faea7 Mon Sep 17 00:00:00 2001 From: Jasmine Emanouel Date: Tue, 30 Jan 2024 09:35:42 +1100 Subject: [PATCH] Ensure connection retry attempts can reach the config specified value --- proxy/http/HttpTransact.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc index ea7b54c7514..da4c3d033c6 100644 --- a/proxy/http/HttpTransact.cc +++ b/proxy/http/HttpTransact.cc @@ -3692,7 +3692,7 @@ HttpTransact::handle_response_from_parent(State *s) s->current.attempts++; // Are we done with this particular parent? - if ((s->current.attempts - 1) % s->txn_conf->per_parent_connect_attempts != 0) { + if (s->current.attempts % s->txn_conf->per_parent_connect_attempts != 0) { // No we are not done with this parent so retry HTTP_INCREMENT_DYN_STAT(http_total_parent_switches_stat); s->next_action = how_to_open_connection(s);