]> granicus.if.org Git - apache/commitdiff
Prevent race condition
authorJean-Frederic Clere <jfclere@apache.org>
Mon, 23 Aug 2010 09:09:25 +0000 (09:09 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Mon, 23 Aug 2010 09:09:25 +0000 (09:09 +0000)
See http://www.mail-archive.com/dev@httpd.apache.org/msg47171.html

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@988038 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index 74e7da96a688ff634d840a27ef3cb001e1808751..d6e1ea6d1887643528593050306485f6be35cdd2 100644 (file)
@@ -2587,8 +2587,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);