Skip to content

Commit fa9c80d

Browse files
authored
Merge pull request #286 from jajik/busy-init
Add initialization for worker->s->busy field
2 parents 9dd8980 + 7d78e0c commit fa9c80d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

native/mod_proxy_cluster/mod_proxy_cluster.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ static apr_status_t create_worker_reuse(proxy_server_conf *conf, const char *ptr
336336
worker->s->redirect[0] = '\0';
337337
worker->s->lbstatus = 0;
338338
worker->s->lbfactor = -1; /* prevent using the node using status message */
339+
worker->s->busy = 0;
339340

340341
/* add health check */
341342
worker->s->updated = apr_time_now();
@@ -582,6 +583,7 @@ static apr_status_t create_worker(proxy_server_conf *conf, proxy_balancer *balan
582583
worker->s->redirect[0] = '\0';
583584
worker->s->lbstatus = 0;
584585
worker->s->lbfactor = -1; /* prevent using the node using status message */
586+
worker->s->busy = 0;
585587
}
586588

587589
return APR_SUCCESS;
@@ -2110,6 +2112,7 @@ static void init_proxy_worker(server_rec *server, nodeinfo_t *node, proxy_worker
21102112
worker->s->redirect[0] = '\0';
21112113
worker->s->lbstatus = 0;
21122114
worker->s->lbfactor = -1; /* prevent using the node using status message */
2115+
worker->s->busy = 0;
21132116
pair_worker_node(worker->s, node);
21142117

21152118
/* add health check */

0 commit comments

Comments
 (0)