Bugs item #2692419, was opened at 2009-03-18 19:59
Message generated for change (Tracker Item Submitted) made by calypso2k
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=676128&aid=2692419&group_id=116817
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Other
Group: current version
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: calypso 2k (calypso2k)
Assigned to: wimpunk (wimpunk)
Summary: ddclient sleeps for vely long time
Initial Comment:
Hello everyone,
just want to say I love this piece of script :)
so long story short:
I have machine with broken BIOS battery. Every time it boots up the date is totally random. In this scenario ddclient will sleep for million of seconds:
-computer boots up, current date is in future
-ddclient starts as daemon, updates dyndns, etc...
-meanwhile ntpd starts and sets up correct date
-ddclint will sleep for millions of seconds
reproduce: ddclient in daemon mode, any version, any perl version
Perl function sleep returns number of seconds actually slept so this line
$left -= sleep $delay;
will put it in sleep for 7 millions seconds or so.
I attached a patch file, one extra if block will not kill performance and makes sure that ddclient will not sleep more than should :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=676128&aid=2692419&group_id=116817
|