net/http: error unwrapping broken on some transport errors #56435
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Here's my repro that only seems to work on Linux: https://go.dev/play/p/k305YHkn2QM
You can run it a couple of times to get results like this:
What did you expect to see?
I expected
net.ErrClosed
to always be part of the error chainWhat did you see instead?
It looks like for the
write tcp
andreadLoopPeekFailLocked
the error chain can't be unwrapped entirely.The text was updated successfully, but these errors were encountered: