Skip to content

time: time.After() seems to return early by 5 milliseconds sometimes. #17294

@DavidVorick

Description

@DavidVorick

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.7.1 linux/amd64

What operating system and processor architecture are you using (go env)?

amd64
linux

Qubes -> Whonix (Debian based)

What did you do?

https://play.golang.org/p/YLOXGJrc92

What did you expect to see?

Locked the trylock
Lock failed, time passed: 500ms

What did you see instead?

Locked the trylock
Lock failed, time passed: 495ms


I've only been able to reproduce this on my machine, but time.After was returning 5 milliseconds early in a few contexts with similar code. Not a big deal for my project, but wanted to report that I was seeing unexpected things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions