Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8557 closed defect (fixed)

DDNS update should use monotonic clock

Reported by: quiet.dragon@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

The script dynamic_dns_updater.sh uses $(date +%s) to monitor the time elapsed between DNS record updates.

This approach is fragile because CLOCK_REALTIME can be slewed by time adjustments (eg NTP).

A more robust approach is to use a monotonic clock. Since the script only requires a coarse precision, /proc/uptime is a good choice.

Attachments (1)

ddns.diff.txt (947 bytes) - added by quiet.dragon@… 7 years ago.
Patch to use monotonic time

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by quiet.dragon@…

Patch to use monotonic time

comment:1 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Committed in r24869 - thank you!

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.