httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: svn commit: r721987 - in /httpd/httpd/trunk: CHANGES modules/proxy/config.m4 modules/proxy/mod_lbmethod_heartbeat.c
Date Mon, 01 Dec 2008 19:41:32 GMT
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?



Mime
View raw message