httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: AW: proxy failover/load balance
Date Wed, 01 Feb 2006 13:57:18 GMT

Why the breaks? Certainly we still want to continue the
for loop even if we see a valid setting. For example,
to set a worker in DISABLED and STOPPED mode.

On Jan 31, 2006, at 4:32 PM, Ruediger Pluem wrote:
>
> Index: modules/proxy/mod_proxy.c
> ===================================================================
> --- modules/proxy/mod_proxy.c	(Revision 371134)
> +++ modules/proxy/mod_proxy.c	(Arbeitskopie)
> @@ -200,18 +200,21 @@
>                      worker->status |= PROXY_WORKER_DISABLED;
>                  else
>                      worker->status &= ~PROXY_WORKER_DISABLED;
> +                break;
>              }
>              else if (*v == 'S' || *v == 's') {
>                  if (mode)
>                      worker->status |= PROXY_WORKER_STOPPED;
>                  else
>                      worker->status &= ~PROXY_WORKER_STOPPED;
> +                break;
>              }
>              else if (*v == 'E' || *v == 'e') {
>                  if (mode)
>                      worker->status |= PROXY_WORKER_IN_ERROR;
>                  else
>                      worker->status &= ~PROXY_WORKER_IN_ERROR;
> +                break;
>              }
>              else {
>                  return "Unknow status parameter option";


Mime
View raw message