Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't sync with NTP if module can't access internet #169

Open
TheGroundZero opened this issue Jun 15, 2023 · 1 comment
Open

Won't sync with NTP if module can't access internet #169

TheGroundZero opened this issue Jun 15, 2023 · 1 comment

Comments

@TheGroundZero
Copy link

Issue

For more background information, see jnthas/clockwise#39

As per JeffWDH's investigation, this module will (attempt to) connect to timezoned.rop.nl on port udp/2342 before connecting to a (custom) NTP server.
If this request to timezoned fails, it will not continue connecting to the NTP server.

As a result, this module won't correctly set the time on a device that's not connected to the internet, even if it's configured to use a locally-hosted NTP server.

Solution

The module should not rely on a connection on the internet.
As a mimum, a failed connection to timezoned.rop.nl should not stop the further process of syncing to a (manually configured) NTP server.

@TheGroundZero
Copy link
Author

As the connection to timezones is only to turn a timezone name into an POSIX string, maybe this string could be provided by the application including this module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant