Closed pabigot closed 2 years ago
The documentation specifies that DialReadTimeout can be identified by checking for the string "io/timeout" in the Error() value. This could never work, as the string provided by os.ErrDeadlineExceeded is "i/o timeout".
Thanks for the report and the PR to fix :)
The documentation specifies that DialReadTimeout can be identified by checking for the string "io/timeout" in the Error() value. This could never work, as the string provided by os.ErrDeadlineExceeded is "i/o timeout".