Index: modules/proxy/mod_proxy_balancer.c =================================================================== --- modules/proxy/mod_proxy_balancer.c (revision 599066) +++ modules/proxy/mod_proxy_balancer.c (working copy) @@ -650,33 +650,10 @@ } } /* First set the params */ - if (bsel) { - const char *val; - if ((val = apr_table_get(params, "ss"))) { - if (strlen(val)) - bsel->sticky = apr_pstrdup(conf->pool, val); - else - bsel->sticky = NULL; - } - if ((val = apr_table_get(params, "tm"))) { - int ival = atoi(val); - 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 ((val = apr_table_get(params, "lm"))) { - proxy_balancer_method *provider; - provider = ap_lookup_provider(PROXY_LBMETHOD, val, "0"); - if (provider) { - bsel->lbmethod = provider; - } - } - } + /* + * Note that it is not possible set the proxy_balancer because it is not + * in shared memory. + */ if (wsel) { const char *val; if ((val = apr_table_get(params, "lf"))) { @@ -756,14 +733,16 @@ for (i = 0; i < conf->balancers->nelts; i++) { ap_rputs("
StickySession | Timeout | FailoverAttempts | Method | " "|
---|---|---|---|---|
", balancer->sticky, NULL); + if (balancer->sticky) { + ap_rvputs(r, " | ", balancer->sticky, NULL); + } + else { + ap_rputs(" | - ", r); + } ap_rprintf(r, " | %" APR_TIME_T_FMT " | ", apr_time_sec(balancer->timeout)); ap_rprintf(r, "%d | \n", balancer->max_attempts); @@ -824,10 +803,10 @@ ap_rputs("
LB Set: | ||||
Route: | route, NULL); + ap_rvputs(r, "value=\"", wsel->s->route, NULL); ap_rputs("\"> | |||
Route Redirect: | redirect, NULL); + ap_rvputs(r, "value=\"", wsel->s->redirect, NULL); ap_rputs("\"> | |||
Status: | Disabled: s->status & PROXY_WORKER_DISABLED)
@@ -844,41 +823,6 @@
"\">\n\n", NULL);
ap_rputs(" \n", r); } - else if (bsel) { - ap_rputs(" Edit balancer settings for ", r); - ap_rvputs(r, bsel->name, "\n", NULL); - ap_rvputs(r, "\n", NULL); - ap_rputs("\n", r); - } ap_rputs(ap_psignature("",r), r); ap_rputs(" |