From 3f7e429368ff4edeb097b724e07aac2ab423fa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Chlup?= Date: Wed, 7 Aug 2024 13:12:38 +0200 Subject: [PATCH] Add worker->s->busy initialization --- native/mod_proxy_cluster/mod_proxy_cluster.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/mod_proxy_cluster/mod_proxy_cluster.c b/native/mod_proxy_cluster/mod_proxy_cluster.c index 8f009e31..3eee32c6 100644 --- a/native/mod_proxy_cluster/mod_proxy_cluster.c +++ b/native/mod_proxy_cluster/mod_proxy_cluster.c @@ -336,6 +336,7 @@ static apr_status_t create_worker_reuse(proxy_server_conf *conf, const char *ptr worker->s->redirect[0] = '\0'; worker->s->lbstatus = 0; worker->s->lbfactor = -1; /* prevent using the node using status message */ + worker->s->busy = 0; /* add health check */ worker->s->updated = apr_time_now(); @@ -581,6 +582,7 @@ static apr_status_t create_worker(proxy_server_conf *conf, proxy_balancer *balan worker->s->redirect[0] = '\0'; worker->s->lbstatus = 0; worker->s->lbfactor = -1; /* prevent using the node using status message */ + worker->s->busy = 0; } return APR_SUCCESS; @@ -2108,6 +2110,7 @@ static void init_proxy_worker(server_rec *server, nodeinfo_t *node, proxy_worker worker->s->redirect[0] = '\0'; worker->s->lbstatus = 0; worker->s->lbfactor = -1; /* prevent using the node using status message */ + worker->s->busy = 0; pair_worker_node(worker->s, node); /* add health check */