summaryrefslogtreecommitdiff
path: root/modules/proxy
diff options
context:
space:
mode:
authorJean-Frederic Clere <jfclere@apache.org>2010-08-23 09:09:25 +0000
committerJean-Frederic Clere <jfclere@apache.org>2010-08-23 09:09:25 +0000
commite8cf7c21e5e1431f078e5a0d74c174ecbab498d6 (patch)
tree57e573439fa174740d476bd601c423f9045a5db5 /modules/proxy
parent34b87f8548463d771243e1c9262ff9695d8e4942 (diff)
downloadhttpd-e8cf7c21e5e1431f078e5a0d74c174ecbab498d6.tar.gz
Prevent race condition
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
Diffstat (limited to 'modules/proxy')
-rw-r--r--modules/proxy/proxy_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
index 74e7da96a6..d6e1ea6d18 100644
--- a/modules/proxy/proxy_util.c
+++ b/modules/proxy/proxy_util.c
@@ -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);