Commit cf8af545 authored by Jim Jagielski's avatar Jim Jagielski
Browse files

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
parent 36380971
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/proxy/mod_proxy_hcheck.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
}