Lines 104-110
static int init_balancer_members(proxy_server_conf
Link Here
|
104 |
} |
104 |
} |
105 |
ap_proxy_initialize_worker_share(conf, workers, s); |
105 |
ap_proxy_initialize_worker_share(conf, workers, s); |
106 |
ap_proxy_initialize_worker(workers, s); |
106 |
ap_proxy_initialize_worker(workers, s); |
107 |
if (!worker_is_initialized) { |
107 |
/* If the worker is already initialized but standalone only, the lb |
|
|
108 |
* parameters are nul, we have to init them once here, particularly |
109 |
* lbfactor which would cause a division by 0 with bytraffic. |
110 |
*/ |
111 |
if (!worker_is_initialized || !workers->s->lbfactor) { |
108 |
/* Set to the original configuration */ |
112 |
/* Set to the original configuration */ |
109 |
workers->s->lbstatus = workers->s->lbfactor = |
113 |
workers->s->lbstatus = workers->s->lbfactor = |
110 |
(workers->lbfactor ? workers->lbfactor : 1); |
114 |
(workers->lbfactor ? workers->lbfactor : 1); |