You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2018/08/24 19:29:45 UTC

svn commit: r1838937 - /httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c

Author: jim
Date: Fri Aug 24 19:29:44 2018
New Revision: 1838937

URL: http://svn.apache.org/viewvc?rev=1838937&view=rev
Log:
Update updated field at the start of the check rather than at the end.
Re: [Bug 62318] healthcheck

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c?rev=1838937&r1=1838936&r2=1838937&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c Fri Aug 24 19:29:44 2018
@@ -831,6 +831,7 @@ static void * APR_THREAD_FUNC hc_check(a
                  "%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(a
             }
         }
     }
-    worker->s->updated = now;
     apr_pool_destroy(baton->ptemp);
     return NULL;
 }