TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Handling Leap Seconds the OpenBSD Way

70 pointsby antoniosalmost 10 years ago

9 comments

ams6110almost 10 years ago
It's not always the right approach, but it's a good reminder to consider "do nothing" as the proper response to a weird edge case that is presented as a [potential] problem.
isedalmost 10 years ago
<a href="http:&#x2F;&#x2F;cr.yp.to&#x2F;proto&#x2F;utctai.html" rel="nofollow">http:&#x2F;&#x2F;cr.yp.to&#x2F;proto&#x2F;utctai.html</a><p><a href="http:&#x2F;&#x2F;cr.yp.to&#x2F;proto&#x2F;taiclock.txt" rel="nofollow">http:&#x2F;&#x2F;cr.yp.to&#x2F;proto&#x2F;taiclock.txt</a><p>I am just a dumb user. I use clockspeed (sntpclock, clockadd and clockview) with a short list of compatible servers I consider &quot;reliable&quot;. As far as I can tell, it works.<p><a href="http:&#x2F;&#x2F;cr.yp.to&#x2F;time.html" rel="nofollow">http:&#x2F;&#x2F;cr.yp.to&#x2F;time.html</a>
评论 #9795993 未加载
Bugealmost 10 years ago
I&#x27;m not very familiar with ntpd, but this article doesn&#x27;t cover what would happen if the half hour polling just happens to poll right during the leap second. If the code receives &quot;59 minutes and 60 seconds&quot; but doesn&#x27;t expect that to be possible, I could imagine that being a problem.
评论 #9795356 未加载
takedaalmost 10 years ago
So basically... not handling it :)
评论 #9795119 未加载
PhantomGremlinalmost 10 years ago
For anyone curious about this:<p><pre><code> Finally, if you are one of the exceedingly few people for whom the clock being off by a second actually matters, then I&#x27;m pretty sure you also know how to deal with it. </code></pre> One alternative to NTP is PTP.[1] Quoting:<p><pre><code> IEEE 1588 is designed to fill a niche not well served by either of the two dominant protocols, NTP and GPS. IEEE 1588 is designed for local systems requiring accuracies beyond those attainable using NTP. </code></pre> [1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Precision_Time_Protocol" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Precision_Time_Protocol</a>
xiaqalmost 10 years ago
Ah, the arrogant and absolutely amazing way OpenBSD people write :)
评论 #9795575 未加载
josinalvoalmost 10 years ago
Out of curiosity...<p>What it the NTP server is running openBSD? =P<p>(not sure if this question makes sense... Anyway, it seems some OS has to worry about leap seconds...)
评论 #9796810 未加载
peterwwillisalmost 10 years ago
It&#x27;s not a bug, it&#x27;s a feature we chose not to implement.<p>Weird that a security-centric OS would be cavalier with time when some cryptosystems are time-sensitive.
评论 #9796819 未加载
sshbalmost 10 years ago
Dont they have software with time deltas? Are all time deltas signed? Are negative deltas handled?
评论 #9795477 未加载
评论 #9796020 未加载