]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r988038 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 25 Aug 2010 14:10:14 +0000 (14:10 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 25 Aug 2010 14:10:14 +0000 (14:10 +0000)
Prevent race condition
See http://www.mail-archive.com/dev@httpd.apache.org/msg47171.html

Submitted by: jfclere
Reviewed/backported by: jim

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

STATUS
modules/proxy/proxy_util.c

diff --git a/STATUS b/STATUS
index bf2b644f14fc51557c8151db47dea7d7a402f215..cf505635dfe12c4956875c50648fa2f3646ec986 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -87,11 +87,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
- * mod_proxy: Prevent race condition.
-     Trunk version of patch:
-       http://svn.apache.org/viewvc?view=rev&revision=988038
-   +1: jfclere, sf, rpluem, jim
-
   *) mod_headers: support global replace in Header Edit
      PR 46594 (not 47066 as incorrectly recorded in change log)
      trunk: http://svn.eu.apache.org/viewvc?view=revision&revision=894036
index a70a8758b076a57b526a73910ea47f4ac114f733..95f4a784fcebf54438f387db60a7de201a4e9ee0 100644 (file)
@@ -2509,8 +2509,8 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function,
      */
     if (!connected && PROXY_WORKER_IS_USABLE(worker) &&
         !(worker->s->status & PROXY_WORKER_IGNORE_ERRORS)) {
-        worker->s->status |= PROXY_WORKER_IN_ERROR;
         worker->s->error_time = apr_time_now();
+        worker->s->status |= PROXY_WORKER_IN_ERROR;
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
             "ap_proxy_connect_backend disabling worker for (%s)",
             worker->hostname);