]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r421252 from trunk:
authorJim Jagielski <jim@apache.org>
Mon, 17 Sep 2007 16:44:11 +0000 (16:44 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 17 Sep 2007 16:44:11 +0000 (16:44 +0000)
Issue a warning when the same worker name is reused.

Submitted by: jfclere
Reviewed by: jim

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

STATUS
modules/proxy/mod_proxy.c

diff --git a/STATUS b/STATUS
index 908eb1072da3c24d219aa22b277948980a5bdaa0..34e52e4f2517ca0d743ed23bb7518e3d4b310a8a 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -79,13 +79,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-    * mod_proxy: Issue a warning when the same worker name is reused.
-      Trunk version of patch:
-         http://svn.apache.org/viewvc?view=rev&revision=421252
-      Backport version for 2.2.x of patch:
-         Trunk version of patch works
-      +1: jim, niq, rpluem
-
     * filters|proxy: Return METHOD_NOT_ALLOWED, not FORBIDDEN, to a TRACE
       request when TraceEnable is Off.  This agrees with our documentation,
       and with our Allow: header in response to OPTIONS.
index 4f7fdcc82c2108ecad698e808e436089a34fbc9c..58798c4a0065320805c99c6d74d5ffbe133013b7 100644 (file)
@@ -1169,6 +1169,9 @@ static const char *
             const char *err = ap_proxy_add_worker(&worker, cmd->pool, conf, r);
             if (err)
                 return apr_pstrcat(cmd->temp_pool, "ProxyPass ", err, NULL);
+        } else {
+            ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
+                         "worker %s already used by another worker", worker->name);
         }
         PROXY_COPY_CONF_PARAMS(worker, conf);
 
@@ -1575,6 +1578,9 @@ static const char *add_member(cmd_parms *cmd, void *dummy, const char *arg)
         const char *err;
         if ((err = ap_proxy_add_worker(&worker, cmd->pool, conf, name)) != NULL)
             return apr_pstrcat(cmd->temp_pool, "BalancerMember ", err, NULL);
+    } else {
+            ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server,
+                         "worker %s already used by another worker", worker->name);
     }
     PROXY_COPY_CONF_PARAMS(worker, conf);