On Aug 19, 2005, at 11:05 AM, Mladen Turk wrote:

Jim Jagielski wrote:

What platform... seems to work fine under Linux and OS X.



Windows


This is what add_lbmethods does...



It adds the method, but remember, the widows don't have fork,
so probably the data from parent is not there.


The data is stored within the basic proxy data structs, so I
don't see how fork has anything to do with it... I must
be missing something obvious... sorry.

During the create_proxy_config() stage, the load
lbmethods hook is run. This hook pushes into
proxy_server_conf->lbmethods 2 proxy_balancer_method
structs, which contain the name and function pointers
for the 2 methods.

When ap_proxy_add_balancer() is called, it creates the
proxy_server_conf->balancers entry (proxy_balancer_method)
and then sets it to the byrequests method by scanning through the
proxy_server_conf->lbmethods array for it. It then
sets the proxy_balancer_method->lbmethod to that pointer.

All this is within the per server data structs...

Is it a scope issue because find_best_bytraffic is defined
as static...? Hmmm. I need to look into that.

Reply via email to