processing is completed, avoiding orphaned callback pointers.
[Brett Gervasoni <brettg senseofsecurity.com>, Jeff Trawick]
- *) Proxy balancer: support setting error status according to
- HTTP response code from a backend.
- PR 48939 [Daniel Ruggeri <DRuggeri primary.net>]
+ *) Proxy balancer: support setting error status according to HTTP response
+ code from a backend. PR 48939. [Daniel Ruggeri <DRuggeri primary.net>]
*) htcacheclean: Introduce the ability to clean specific URLs from the
cache, if provided as an optional parameter on the command line.
while (status != NULL) {
ival = atoi(status);
if (ap_is_HTTP_VALID_RESPONSE(ival)) {
- *(int*)apr_array_push(balancer->errstatuses) = ival;
+ *(int *)apr_array_push(balancer->errstatuses) = ival;
}
else {
return "erroronstatus must be one or more HTTP response code";
return HTTP_INTERNAL_SERVER_ERROR;
}
- if (!apr_is_empty_array(balancer->errstatuses)){
+ if (!apr_is_empty_array(balancer->errstatuses)) {
int i;
for (i = 0; i < balancer->errstatuses->nelts; i++) {
- int val=((int*)balancer->errstatuses->elts)[i];
+ int val = ((int *)balancer->errstatuses->elts)[i];
if (r->status == val) {
ap_log_error(APLOG_MARK, APLOG_NOTICE, rv, r->server,
"Detected ErrorOnState (%d) for member (%s). Forcing worker into error state.", val, worker->name);