Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: DialTimeout return "io timeout" when the timeout argument is large #14431
This issue occurs with the latest Go version (1.6 darwin/amd64) and on master.
I have a repro test:
The issue seems to be in
d := runtimeNano() + int64(t.Sub(time.Now()))
This can overflow the int64 and result in a negative number. I'm also not sure whether this line needs to call
I'm working on a CL to fix this.