Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initialization for worker->s->busy field #286

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions native/mod_proxy_cluster/mod_proxy_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -582,6 +583,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;
Expand Down Expand Up @@ -2110,6 +2112,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 */
Expand Down