mirror of
https://github.com/apache/httpd.git
synced 2025-08-06 11:06:17 +00:00
Merge r374929 from trunk:
* Do not overwrite the status of initialized workers and respect the configured status of uninitilized workers when creating a new child process. Submitted by: rpluem Reviewed by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@390182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -84,7 +84,16 @@ static int init_balancer_members(proxy_server_conf *conf, server_rec *s,
|
||||
|
||||
for (i = 0; i < balancer->workers->nelts; i++) {
|
||||
ap_proxy_initialize_worker_share(conf, workers, s);
|
||||
workers->s->status = PROXY_WORKER_INITIALIZED;
|
||||
if (!(workers->s->status & PROXY_WORKER_INITIALIZED)) {
|
||||
workers->s->status |= (workers->status | PROXY_WORKER_INITIALIZED);
|
||||
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
|
||||
"proxy: BALANCER: initialized balancer member %d for "
|
||||
"balancer %s in child %" APR_PID_T_FMT " for (%s) "
|
||||
"min=%d max=%d smax=%d",
|
||||
workers->id, balancer->name, getpid(),
|
||||
workers->hostname, workers->min, workers->hmax,
|
||||
workers->smax);
|
||||
}
|
||||
++workers;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user