Skip to content

Commit

Permalink
Add worker->s->busy initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Aug 21, 2024
1 parent b13360f commit 3f7e429
Showing 1 changed file with 3 additions and 0 deletions.
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 @@ -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;
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 3f7e429

Please sign in to comment.