]> granicus.if.org Git - apache/commitdiff
Update updated field at the start of the check rather than at the end.
authorJim Jagielski <jim@apache.org>
Fri, 24 Aug 2018 19:29:44 +0000 (19:29 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 24 Aug 2018 19:29:44 +0000 (19:29 +0000)
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

index 0ee6845265040bf5a805edc5bb6fc35f7a8f65de..839f6a2dcb9d0518f9463c83d397e201bda27498 100644 (file)
@@ -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;
 }