From: Jim Jagielski Date: Fri, 24 Aug 2018 19:29:44 +0000 (+0000) Subject: Update updated field at the start of the check rather than at the end. X-Git-Tag: 2.5.0-alpha2-ci-test-only~2380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=465d468d9eaee09f5eded196a0cd56b3a46ec864;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/proxy/mod_proxy_hcheck.c b/modules/proxy/mod_proxy_hcheck.c index 0ee68452650..839f6a2dcb9 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; }