... by popular demand, and add documentation.
Submitted by: Daniel Ruggeri <DRuggeri primary.net>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@987359
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.8
+ *) mod_proxy: Rename erroronstatus to failonstatus.
+ [Daniel Ruggeri <DRuggeri primary.net>]
Changes with Apache 2.3.7
<td>Balancer timeout in seconds. If set this will be the maximum time
to wait for a free worker. Default is not to wait.
</td></tr>
+ <tr><td>failonstatus</td>
+ <td>-</td>
+ <td>A single or comma-separated list of HTTP status codes. If set this will
+ force the worker into error state when the backend returns any status code
+ in the list. Worker recovery behaves the same as other worker errors.
+ </td></tr>
</table>
<p>A sample balancer setup</p>
else
return "scolonpathdelim must be On|Off";
}
- else if (!strcasecmp(key, "erroronstatus")) {
+ else if (!strcasecmp(key, "failonstatus")) {
char *val_split;
char *status;
char *tok_state;
*(int *)apr_array_push(balancer->errstatuses) = ival;
}
else {
- return "erroronstatus must be one or more HTTP response code";
+ return "failonstatus must be one or more HTTP response codes";
}
status = apr_strtok(NULL, ", ", &tok_state);
}
int val = ((int *)balancer->errstatuses->elts)[i];
if (r->status == val) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
- "proxy: BALANCER: (%s). Forcing recovery for worker (%s), erroronstatus %d",
+ "proxy: BALANCER: (%s). Forcing recovery for worker (%s), failonstatus %d",
balancer->name, worker->name, val);
worker->s->status |= PROXY_WORKER_IN_ERROR;
worker->s->error_time = apr_time_now();