Fix for NTP client rescheduling

Releases, updates and announcements from the Ultibo team.
User avatar
Site Admin
Posts: 2217
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Fix for NTP client rescheduling

Postby Ultibo » Wed Jun 29, 2016 5:58 am

An update to fix a bug in the NTP (Network Time Protocol) client is now available on GitHub.

A bug was discovered in the way the NTP client was scheduled to retry in the event of a failed time request. Due to the interaction between the regular NTP update timer (normally set at 5 minutes) and the retry timer, created to schedule a fast retry of the NTP request during initial time setting, over time multiple retry timers could become active at once. The eventual result being that all worker threads were consumed in retrying NTP requests and none were available to service other system critical tasks, giving the appearance that the system had completely hung.

The NTP client retry handling has been redesigned to prevent this from occurring, as an extra bonus this also resolves an issue where CPU utilization on a Raspberry Pi A+ or Zero (no network) would steadily increase over several days even with no other activity.

For details of how to apply the latest source to your Ultibo core installation and rebuild your run time library see the wiki page Building from Source. | Make something amazing

Return to “Ultibo”

Who is online

Users browsing this forum: No registered users and 1 guest