diff options
author | Jim Jagielski <jim@apache.org> | 2009-04-27 17:02:40 +0200 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2009-04-27 17:02:40 +0200 |
commit | 7e145e73125bf8ae2d736a60beaa376629954837 (patch) | |
tree | 44a61094183f3a183395a7e0af44a79214fb00ff /modules/proxy/balancers/mod_lbmethod_bybusyness.c | |
parent | don't use literal '100' for HTTP_CONTINUE (searchability) (diff) | |
download | apache2-7e145e73125bf8ae2d736a60beaa376629954837.tar.xz apache2-7e145e73125bf8ae2d736a60beaa376629954837.zip |
Fold in initial template for methods to be able to
reset (initialize) and "age" their data, useful when
adding new workers, or when workers come back into
the fold....
Logic and code to come in a bit :)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@769020 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/balancers/mod_lbmethod_bybusyness.c')
-rw-r--r-- | modules/proxy/balancers/mod_lbmethod_bybusyness.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/proxy/balancers/mod_lbmethod_bybusyness.c b/modules/proxy/balancers/mod_lbmethod_bybusyness.c index 5bdeef7e7d..0e5ebc87a1 100644 --- a/modules/proxy/balancers/mod_lbmethod_bybusyness.c +++ b/modules/proxy/balancers/mod_lbmethod_bybusyness.c @@ -105,10 +105,20 @@ static proxy_worker *find_best_bybusyness(proxy_balancer *balancer, } +static apr_status_t reset(proxy_balancer *balancer, request_rec *r) { + return APR_SUCCESS; +} + +static apr_status_t age(proxy_balancer *balancer, request_rec *r) { + return APR_SUCCESS; +} + static const proxy_balancer_method bybusyness = { "bybusyness", &find_best_bybusyness, + &reset, + &age, NULL }; |