From 8cfb7b4f62749613a9d1b43b7b15a8b6c438f23f Mon Sep 17 00:00:00 2001 From: Masakazu Kitajo Date: Mon, 28 Aug 2023 14:09:05 -0600 Subject: [PATCH] Fix connect failure count --- proxy/http/HttpSM.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc index 1cc02b6bc34..7e46897a01d 100644 --- a/proxy/http/HttpSM.cc +++ b/proxy/http/HttpSM.cc @@ -5765,10 +5765,10 @@ HttpSM::mark_host_failure(ResolveInfo *info, ts_time time_down) SMDebug("http", "hostdb increment IP failcount %s to %d", ats_ip_nptop(&t_state.current.server->dst_addr.sa, addrbuf, sizeof(addrbuf)), info->active->fail_count.load()); } - } else { // Clear the failure - info->active->fail_count = 0; - info->active->last_failure = time_down; } + } else { // Clear the failure + info->active->fail_count = 0; + info->active->last_failure = time_down; } } #ifdef DEBUG