From: Mladen Turk Date: Thu, 16 Sep 2004 14:12:36 +0000 (+0000) Subject: Add failover attempts management to balancer-manager. X-Git-Tag: 2.1.1~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f726314b43b1661dd16e0243e99a7ead8ebd4a79;p=apache Add failover attempts management to balancer-manager. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105173 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_balancer.c b/modules/proxy/proxy_balancer.c index 05b8bf7010..b1a94f92ef 100644 --- a/modules/proxy/proxy_balancer.c +++ b/modules/proxy/proxy_balancer.c @@ -618,6 +618,12 @@ static int balancer_handler(request_rec *r) if (ival >= 0) bsel->timeout = apr_time_from_sec(ival); } + if ((val = apr_table_get(params, "fa"))) { + int ival = atoi(val); + if (ival >= 0) + bsel->max_attempts = ival; + bsel->max_attempts_set = 1; + } } if (wsel) { const char *val; @@ -696,11 +702,12 @@ static int balancer_handler(request_rec *r) "\">", NULL); ap_rvputs(r, balancer->name, "\n\n", NULL); ap_rputs("\n\n" - "" + "" "\n", r); ap_rvputs(r, "\n", + ap_rprintf(r, "", apr_time_sec(balancer->timeout)); + ap_rprintf(r, "\n", balancer->max_attempts); ap_rputs("
StickySesionTimeoutStickySesionTimeoutFailoverAttempts
", balancer->sticky, NULL); - ap_rprintf(r, "%" APR_TIME_T_FMT "%" APR_TIME_T_FMT "%d
\n", r); ap_rputs("\n\n" "" @@ -774,6 +781,9 @@ static int balancer_handler(request_rec *r) ap_rputs(">\n\n", apr_time_sec(bsel->timeout)); + ap_rputs("\n", + bsel->max_attempts); ap_rputs("\n", r); ap_rvputs(r, "
SchemeHost
Timeout:
Failover Attempts:
\nname + sizeof("balancer://") - 1,