From 465d468d9eaee09f5eded196a0cd56b3a46ec864 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Fri, 24 Aug 2018 19:29:44 +0000 Subject: [PATCH] Update updated field at the start of the check rather than at the end. Re: [Bug 62318] healthcheck git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1838937 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_hcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy/mod_proxy_hcheck.c b/modules/proxy/mod_proxy_hcheck.c index 0ee6845265..839f6a2dcb 100644 --- a/modules/proxy/mod_proxy_hcheck.c +++ b/modules/proxy/mod_proxy_hcheck.c @@ -831,6 +831,7 @@ static void * APR_THREAD_FUNC hc_check(apr_thread_t *thread, void *b) "%sHealth checking %s", (thread ? "Threaded " : ""), worker->s->name); + worker->s->updated = now; if (hc->s->method == TCP) { rv = hc_check_tcp(baton); } @@ -871,7 +872,6 @@ static void * APR_THREAD_FUNC hc_check(apr_thread_t *thread, void *b) } } } - worker->s->updated = now; apr_pool_destroy(baton->ptemp); return NULL; } -- 2.50.1