News for hackers. Stuff that matters.
Re:Some DNS lookups causing 5xx errors due to leap second bug by alexforster on Sunday January 01, 2017 @12:30AM (#13294801)
Yeah, and Go doesn't expose a monotonic clocksource in its stdlib[1]. I'd bet that's what this boils down to.

[1] https://github.com/golang/go/issues/12914

Re:Some DNS lookups causing 5xx errors due to leap second bug by raverbashing on Sunday January 01, 2017 @04:12AM (#13295192)
Wow, that discussion is cringeworthy

I really thought anyone discussing systems programming should be aware of the need for a monotonically increasing clock source

REALLY

Re:Some DNS lookups causing 5xx errors due to leap second bug by kondbg on Sunday January 01, 2017 @06:08AM (#13295405)
I'm confused on why a DNS server would need to rely on a monotonic clock for its use cases. Is there a part of DNS that relies on the assumption of synchronized, monotonic time? (Perhaps TTL/expiry of records? But I still don't see why having a non monotonic clock source would harm if CF is using Go timers for expiry)
Re:Some DNS lookups causing 5xx errors due to leap second bug by tyingq on Sunday January 01, 2017 @11:18AM (#13296162)
One example might be rate limiting. Count requests over elapsed time. If elapsed time is a negative number, the math might trigger a bug that causes CF to block requests...too many requests over time period X.
Re:Some DNS lookups causing 5xx errors due to leap second bug by kondbg on Monday January 02, 2017 @08:52PM (#13306042)
Cloudflare posted a post-mortem [1]. They were measuring round trip time, and supplying the result of that into the golang rand.Int63n() function, which panics the process when given a negative number.

[1] https://blog.cloudflare.com/how-and-why-the-leap-second-affe...

Re:Some DNS lookups causing 5xx errors due to leap second bug by dom0 on Sunday January 01, 2017 @06:34AM (#13295459)
That's really odd. You can't even make a working progress display without that.