https://issues.apache.org/bugzilla/show_bug.cgi?id=57067

            Bug ID: 57067
           Summary: A proxy worker both standalone and balancer member may
                    not be fully initialized
           Product: Apache httpd-2
           Version: 2.2-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: mod_proxy_balancer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 32092
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32092&action=edit
Force initialization of lb parameters if they are not already

If a proxy worker is first declared as standalone (<Proxy> or ProxyPass) and
then also used as a BalancerMember, PROXY_WORKER_INITIALIZED is set during the
first call to ap_proxy_initialize_worker_share(), and hence the second call
from init_balancer_members() won't initialize lbset, lbstatus and lbfactor.

The latter parameter is problematic since it is used as divisor with lbmethod
bytraffic, causing a crash.

The attached patch fixes it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to