]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Set the error time if we set a worker in error mode.
authorRuediger Pluem <rpluem@apache.org>
Thu, 15 Jan 2009 13:44:23 +0000 (13:44 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 15 Jan 2009 13:44:23 +0000 (13:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@734703 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 00c1c25b0ad6232581b33eeacb4aa739ad76e6ba..67346183c1891153d358df3d445497223d2692ab 100644 (file)
@@ -1020,8 +1020,10 @@ static int proxy_handler(request_rec *r)
              * We can not failover to another worker.
              * Mark the worker as unusable if member of load balancer
              */
-            if (balancer)
+            if (balancer) {
                 worker->s->status |= PROXY_WORKER_IN_ERROR;
+                worker->s->error_time = apr_time_now();
+            }
             break;
         }
         else if (access_status == HTTP_SERVICE_UNAVAILABLE) {
@@ -1031,6 +1033,7 @@ static int proxy_handler(request_rec *r)
              */
             if (balancer) {
                 worker->s->status |= PROXY_WORKER_IN_ERROR;
+                worker->s->error_time = apr_time_now();
             }
         }
         else {