Ruediger Pluem wrote:
+    for (i = 0; i < balancer->workers->nelts; i++) {
+        worker = &APR_ARRAY_IDX(balancer->workers, i, proxy_worker);
+        server = apr_hash_get(servers, worker->hostname, APR_HASH_KEY_STRING);

Hm, the hash uses IP addresses as keys whereas worker->hostname could be name.

Yeah, DNS is bad, don't use it... :-)

I don't know an easy way to solve this, since the worker struct doesn't contain the resolved IP, and resolving the IPs of all the workers is a very bad and potentially very slow thing.

Thoughts?


Reply via email to