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.
The text was updated successfully, but these errors were encountered: