Closed soypat closed 8 months ago
CC @neild
Change https://golang.org/cl/381694 mentions this issue: net/http: Client wraps context errors
Change https://go.dev/cl/533119 mentions this issue: net/http: wrap client errors
Reopen. CL reverted.
Change https://go.dev/cl/559035 mentions this issue: net/http: wrap client errors
Change https://go.dev/cl/567537 mentions this issue: net/http: make timeout errors match context.DeadlineExceeded
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Issue not reproducible on go playground. https://go.dev/play/p/NfEhKnRBFuv
What did you expect to see?
What did you see instead?
This is because the errors are wrapped like this:
Second error could easily wrap
context.DeadlineExceeded