mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
* Set the error time if we set a worker in error mode.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@734703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user