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 Fri, 05 Dec 2008 09:30:22 GMT
Ruediger Pluem wrote:
> 
> On 12/01/2008 08:25 AM, pquerna@apache.org wrote:
>> Author: pquerna
>> Date: Sun Nov 30 23:25:11 2008
>> New Revision: 721987
>>
>> URL: http://svn.apache.org/viewvc?rev=721987&view=rev
>> Log:
>> Add a new module to read in the heartbeat file and do load balancing for
>> mod_proxy based upon it.
>>
>> Added:
>>     httpd/httpd/trunk/modules/proxy/mod_lbmethod_heartbeat.c   (contents, props changed)
>>       - copied, changed from r721944, httpd/httpd/trunk/modules/proxy/examples/mod_lbmethod_rr.c
>> Modified:
>>     httpd/httpd/trunk/CHANGES
>>     httpd/httpd/trunk/modules/proxy/config.m4
>>
.....
>> +
>> +        if (!server) {
>> +            continue;
>> +        }
>> +
>> +        if (!PROXY_WORKER_IS_USABLE(worker)) {
>> +            ap_proxy_retry_worker("BALANCER", worker, r->server);
>> +        }
>> +
>> +        if (PROXY_WORKER_IS_USABLE(worker)) {
>> +            server->worker = worker;
>> +            if (server->seen < 10) {
> 
> Hm. Hardcoded 10. This seems to be ugly.

Made a compile time define in r723685.

...
> Regards
> 
> RĂ¼diger

Thank You,

Paul


Mime
View raw message