]> granicus.if.org Git - apache/commitdiff
mod_md: fixes error in renew window calculation that may lead to mod_md running
authorStefan Eissing <icing@apache.org>
Mon, 19 Mar 2018 09:35:45 +0000 (09:35 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 19 Mar 2018 09:35:45 +0000 (09:35 +0000)
     watchdog in a tight loop until actual renewal becomes necessary.

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

CHANGES
modules/md/mod_md.c

diff --git a/CHANGES b/CHANGES
index 729baf3688fef432b4a7c8afb9b79e8ccf4e1a27..27352252abdb5d8f2d06a730b3a5ff1a01355366 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.1
 
+  *) mod_md: fixes error in renew window calculation that may lead to mod_md running
+     watchdog in a tight loop until actual renewal becomes necessary. [Stefan Eissing]
+
   *) mod_md: /.well-known/acme-challenge requests that cannot be answered for hostnames
      outside the configured MDs are free to be answered by other handlers. This allows
      co-existance between mod_md and other ACME clients on the same server (implements PR62189).
index ae13118e237ee3f287a2e70e9d1fbaa26c6b3aa6..0b4af20318a2abfeb1deeabcdcb2682808de10cf 100644 (file)
@@ -698,11 +698,11 @@ static apr_status_t check_job(md_watchdog *wd, md_job_t *job, apr_pool_t *ptemp)
             }
         }
         else {
-            job->next_check = job->md->expires - job->md->renew_window;
-
+            /* Renew is not necessary yet, leave job->next_check as 0 since 
+             * that keeps the default schedule of running twice a day. */
             apr_rfc822_date(ts, job->md->expires);
             ap_log_error( APLOG_MARK, APLOG_DEBUG, 0, wd->s, APLOGNO(10053) 
-                         "md(%s): is complete, cert expires %s", job->md->name, ts);
+                         "md(%s): no need to renew yet, cert expires %s", job->md->name, ts);
         }
     }