[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3722 - trunk/OpenDNSSEC/signer/src/daemon

Matthijs Mekking matthijs at nlnetlabs.nl
Wed Aug 11 10:03:09 CEST 2010


Author: matthijs
Date: 2010-08-11 10:03:09 +0200 (Wed, 11 Aug 2010)
New Revision: 3722

Modified:
   trunk/OpenDNSSEC/signer/src/daemon/worker.c
Log:
max timeout for worker (reusing backoff for zone task)
http://www.pivotaltracker.com/story/show/4637426




Modified: trunk/OpenDNSSEC/signer/src/daemon/worker.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/worker.c	2010-08-11 07:57:00 UTC (rev 3721)
+++ trunk/OpenDNSSEC/signer/src/daemon/worker.c	2010-08-11 08:03:09 UTC (rev 3722)
@@ -115,6 +115,9 @@
                 timeout = (task->when - now);
             } else {
                 timeout *= 2;
+                if (timeout > ODS_SE_MAX_BACKOFF) {
+                    timeout = ODS_SE_MAX_BACKOFF;
+                }
             }
             lock_basic_unlock(&worker->tasklist->tasklist_lock);
 




More information about the Opendnssec-commits mailing list