Index: httpd-2.2.17/modules/proxy/mod_proxy_balancer.c
===================================================================
--- httpd-2.2.17/modules/proxy/mod_proxy_balancer.c	(revision 1091721)
+++ httpd-2.2.17/modules/proxy/mod_proxy_balancer.c	(working copy)
@@ -607,8 +607,8 @@
                 ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
                              "proxy: BALANCER: (%s).  Forcing recovery for worker (%s), failonstatus %d",
                              balancer->name, worker->name, val);
+                worker->s->error_time = apr_time_now();
                 worker->s->status |= PROXY_WORKER_IN_ERROR;
-                worker->s->error_time = apr_time_now();
                 break;
             }
         }
Index: httpd-2.2.17/modules/proxy/mod_proxy.c
===================================================================
--- httpd-2.2.17/modules/proxy/mod_proxy.c	(revision 1091721)
+++ httpd-2.2.17/modules/proxy/mod_proxy.c	(working copy)
@@ -1025,8 +1025,8 @@
              * Mark the worker as unusable if member of load balancer
              */
             if (balancer) {
+                worker->s->error_time = apr_time_now();
                 worker->s->status |= PROXY_WORKER_IN_ERROR;
-                worker->s->error_time = apr_time_now();
             }
             break;
         }
@@ -1036,8 +1036,8 @@
              * Mark the worker as unusable if member of load balancer
              */
             if (balancer) {
+                worker->s->error_time = apr_time_now();
                 worker->s->status |= PROXY_WORKER_IN_ERROR;
-                worker->s->error_time = apr_time_now();
                // cleanup worker
                proxy_run_post_request(worker, balancer, r, conf);
                balancer = NULL;
