1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

ap_proxy_retry_worker() only needs to spit out one debug

message, and it should indicate whether or not retry will
be attempted


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@988635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2010-08-24 18:04:06 +00:00
parent f4dec0256e
commit eed7564b03

View File

@@ -2025,9 +2025,6 @@ PROXY_DECLARE(int) ap_proxy_retry_worker(const char *proxy_function,
server_rec *s) server_rec *s)
{ {
if (worker->s->status & PROXY_WORKER_IN_ERROR) { if (worker->s->status & PROXY_WORKER_IN_ERROR) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
"proxy: %s: retrying the worker for (%s)",
proxy_function, worker->hostname);
if (apr_time_now() > worker->s->error_time + worker->retry) { if (apr_time_now() > worker->s->error_time + worker->retry) {
++worker->s->retries; ++worker->s->retries;
worker->s->status &= ~PROXY_WORKER_IN_ERROR; worker->s->status &= ~PROXY_WORKER_IN_ERROR;
@@ -2037,6 +2034,9 @@ PROXY_DECLARE(int) ap_proxy_retry_worker(const char *proxy_function,
return OK; return OK;
} }
else { else {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
"proxy: %s: too soon to retry worker for (%s)",
proxy_function, worker->hostname);
return DECLINED; return DECLINED;
} }
} }