]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r571338 from trunk:
authorJim Jagielski <jim@apache.org>
Sat, 1 Sep 2007 12:13:09 +0000 (12:13 +0000)
committerJim Jagielski <jim@apache.org>
Sat, 1 Sep 2007 12:13:09 +0000 (12:13 +0000)
mod_proxy: Add Proxypass status option to ignore errors
PR 43167.  Patch by Francisco Gimeno

Submitted by: niq
Reviewed by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@571778 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/manual/mod/mod_proxy.xml
modules/proxy/mod_proxy.c

diff --git a/CHANGES b/CHANGES
index 43010975823cfa5a43f5ad044d5826b2bfbc8c59..6b48ea8910e2f5eeff743db54bcf335483e3c75c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.6
 
+  *) mod_proxy: enable Ignore Errors option on ProxyPass Status.
+     PR 43167 [Francisco Gimeno <kikov kikov.org>
+
   *) mod_proxy_http: Don't try to read body of a HEAD request before
      responding.  PR 41644 [Stuart Children <stuart terminus.co.uk>]
 
index 18331c9f0e4dc3920fdb0422ba75c2516413d9b1..65de869527a461e8efee26efbd1f88f8daa60dba 100644 (file)
@@ -694,9 +694,10 @@ expressions</description>
     <tr><td>status</td>
         <td>-</td>
         <td>Single letter value defining the initial status of
-        this worker: 'D' is disabled, 'S' is stopped, 'H' is hot-standby
-        and 'E' is in an error state. Status can be set (which is the default)
-        by prepending with '+' or cleared by prepending with '-'.
+        this worker: 'D' is disabled, 'S' is stopped, 'I' is ignore-errors,
+       'H' is hot-standby and 'E' is in an error state. Status 
+       can be set (which is the default) by prepending with '+' or 
+        cleared by prepending with '-'.
         Thus, a setting of 'S-E' sets this worker to Stopped and
         clears the in-error flag.
     </td></tr>
index c845ba047ffe62c7285b4535ef4f567746d36fbe..18b554a7b317483ff0dc569a1b983cd4bc3bdd04 100644 (file)
@@ -219,6 +219,12 @@ static const char *set_worker_param(apr_pool_t *p,
                 else
                     worker->status &= ~PROXY_WORKER_HOT_STANDBY;
             }
+           else if (*v == 'I' || *v == 'i') {
+               if (mode)
+                   worker->status |= PROXY_WORKER_IGNORE_ERRORS;
+               else
+                   worker->status &= ~PROXY_WORKER_IGNORE_ERRORS;
+           }
             else {
                 return "Unknown status parameter option";
             }