From 57d3b0d7db1298262f88269c4652103ea6098664 Mon Sep 17 00:00:00 2001 From: robs Date: Sat, 21 Sep 2002 14:22:46 +0000 Subject: [PATCH] Log when invoking and restoring the restart backoff policy. --- CHANGES | 16 +++++++++------- fcgi_pm.c | 21 ++++++++++++++++++++- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/CHANGES b/CHANGES index d9d9299..8c87603 100644 --- a/CHANGES +++ b/CHANGES @@ -1,10 +1,12 @@ -2.2.13 - - *) [WIN32] Prevent intermittent ReadFile() failures (properly initialize the - OVERLAPPED structure). - - *) Eliminate need for dummy files for external servers under Apache2 - +2.2.13 + + *) Log when invoking and restoring the restart backoff policy. + + *) [WIN32] Prevent intermittent ReadFile() failures (properly initialize the + OVERLAPPED structure). + + *) Eliminate need for dummy files for external servers under Apache2 + *) Fix auth compatibility mode handling for access checker and authorizer *) Fix HEAD request handling. Based on a patch by diff --git a/fcgi_pm.c b/fcgi_pm.c index c18e922..e55b8e7 100644 --- a/fcgi_pm.c +++ b/fcgi_pm.c @@ -1,5 +1,5 @@ /* - * $Id: fcgi_pm.c,v 1.77 2002/08/20 03:01:43 robs Exp $ + * $Id: fcgi_pm.c,v 1.78 2002/09/21 14:22:46 robs Exp $ */ @@ -1681,6 +1681,12 @@ void fcgi_pm_main(void *dummy) { s->bad = 0; s->numFailures = 0; + ap_log_error(FCGI_LOG_WARN_NOERRNO, fcgi_apache_main_server, + "FastCGI:%s server \"%s\" has remained" + " running for more than %d seconds, its restart" + " interval has been restored to %d seconds", + (s->directive == APP_CLASS_DYNAMIC) ? " (dynamic)" : "", + s->fs_path, RUNTIME_SUCCESS_INTERVAL, s->restartDelay); } else { @@ -1697,11 +1703,24 @@ void fcgi_pm_main(void *dummy) if (j >= numChildren) { s->bad = 1; + ap_log_error(FCGI_LOG_WARN_NOERRNO, fcgi_apache_main_server, + "FastCGI:%s server \"%s\" has failed to remain" + " running for %d seconds given %d attempts, its restart" + " interval has been backed off to %d seconds", + (s->directive == APP_CLASS_DYNAMIC) ? " (dynamic)" : "", + s->fs_path, RUNTIME_SUCCESS_INTERVAL, MAX_FAILED_STARTS, + FAILED_STARTS_DELAY); } else { s->bad = 0; s->numFailures = 0; + ap_log_error(FCGI_LOG_WARN_NOERRNO, fcgi_apache_main_server, + "FastCGI:%s server \"%s\" has remained" + " running for more than %d seconds, its restart" + " interval has been restored to %d seconds", + (s->directive == APP_CLASS_DYNAMIC) ? " (dynamic)" : "", + s->fs_path, RUNTIME_SUCCESS_INTERVAL, s->restartDelay); } } } -- 2.11.4.GIT