Lines 1045-1051
static int proxy_handler(request_rec *r)
Link Here
|
1045 |
* We can not failover to another worker. |
1045 |
* We can not failover to another worker. |
1046 |
* Mark the worker as unusable if member of load balancer |
1046 |
* Mark the worker as unusable if member of load balancer |
1047 |
*/ |
1047 |
*/ |
1048 |
if (balancer) { |
1048 |
if (balancer |
|
|
1049 |
&& !(worker->s->status & PROXY_WORKER_IGNORE_ERRORS)) { |
1049 |
worker->s->status |= PROXY_WORKER_IN_ERROR; |
1050 |
worker->s->status |= PROXY_WORKER_IN_ERROR; |
1050 |
worker->s->error_time = apr_time_now(); |
1051 |
worker->s->error_time = apr_time_now(); |
1051 |
} |
1052 |
} |
Lines 1056-1062
static int proxy_handler(request_rec *r)
Link Here
|
1056 |
* We can failover to another worker |
1057 |
* We can failover to another worker |
1057 |
* Mark the worker as unusable if member of load balancer |
1058 |
* Mark the worker as unusable if member of load balancer |
1058 |
*/ |
1059 |
*/ |
1059 |
if (balancer) { |
1060 |
if (balancer |
|
|
1061 |
&& !(worker->s->status & PROXY_WORKER_IGNORE_ERRORS)) { |
1060 |
worker->s->status |= PROXY_WORKER_IN_ERROR; |
1062 |
worker->s->status |= PROXY_WORKER_IN_ERROR; |
1061 |
worker->s->error_time = apr_time_now(); |
1063 |
worker->s->error_time = apr_time_now(); |
1062 |
} |
1064 |
} |
Lines 1404-1409
static const char *
Link Here
|
1404 |
const char *err = ap_proxy_add_worker(&worker, cmd->pool, conf, r); |
1406 |
const char *err = ap_proxy_add_worker(&worker, cmd->pool, conf, r); |
1405 |
if (err) |
1407 |
if (err) |
1406 |
return apr_pstrcat(cmd->temp_pool, "ProxyPass ", err, NULL); |
1408 |
return apr_pstrcat(cmd->temp_pool, "ProxyPass ", err, NULL); |
|
|
1409 |
/* Ignore (disable-on-)errors for non balancer-members */ |
1410 |
worker->status |= PROXY_WORKER_IGNORE_ERRORS; |
1407 |
} else { |
1411 |
} else { |
1408 |
ap_log_error(APLOG_MARK, APLOG_INFO, 0, cmd->server, |
1412 |
ap_log_error(APLOG_MARK, APLOG_INFO, 0, cmd->server, |
1409 |
"worker %s already used by another worker", worker->name); |
1413 |
"worker %s already used by another worker", worker->name); |
Lines 1906-1911
static const char *
Link Here
|
1906 |
if (err) |
1910 |
if (err) |
1907 |
return apr_pstrcat(cmd->temp_pool, "ProxySet ", |
1911 |
return apr_pstrcat(cmd->temp_pool, "ProxySet ", |
1908 |
err, NULL); |
1912 |
err, NULL); |
|
|
1913 |
/* Ignore (disable-on-)errors for non balancer-members */ |
1914 |
worker->status |= PROXY_WORKER_IGNORE_ERRORS; |
1909 |
} |
1915 |
} |
1910 |
else |
1916 |
else |
1911 |
return apr_pstrcat(cmd->temp_pool, "ProxySet can not find '", |
1917 |
return apr_pstrcat(cmd->temp_pool, "ProxySet can not find '", |
Lines 2051-2056
static const char *proxysection(cmd_parms *cmd, vo
Link Here
|
2051 |
if (err) |
2057 |
if (err) |
2052 |
return apr_pstrcat(cmd->temp_pool, thiscmd->name, |
2058 |
return apr_pstrcat(cmd->temp_pool, thiscmd->name, |
2053 |
" ", err, NULL); |
2059 |
" ", err, NULL); |
|
|
2060 |
/* Ignore (disable-on-)errors for non balancer-members */ |
2061 |
worker->status |= PROXY_WORKER_IGNORE_ERRORS; |
2054 |
} |
2062 |
} |
2055 |
} |
2063 |
} |
2056 |
if (worker == NULL && balancer == NULL) { |
2064 |
if (worker == NULL && balancer == NULL) { |