1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Add CPING to health check logic.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887415 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Frederic Clere
2021-03-10 10:36:46 +00:00
parent 7c5e4c9ab2
commit f5fbe0f338
4 changed files with 63 additions and 1 deletions

View File

@@ -1087,6 +1087,8 @@ static void push2table(const char *input, apr_table_t *params,
}
ap_unescape_url(key);
ap_unescape_url(val);
/* hcuri, worker name, balancer name, at least are escaped when building the form, so twice */
ap_unescape_url(val);
if (allowed == NULL) { /* allow all */
apr_table_set(params, key, val);
}
@@ -1215,7 +1217,7 @@ static int balancer_process_balancer_worker(request_rec *r, proxy_server_conf *c
*wsel->s->hcexpr = '\0';
}
/* If the health check method doesn't support an expr, then null it */
if (wsel->s->method == NONE || wsel->s->method == TCP) {
if (wsel->s->method == NONE || wsel->s->method == TCP || wsel->s->method == CPING) {
*wsel->s->hcexpr = '\0';
}
/* if enabling, we need to reset all lb params */