The mips64le failure above has "too many open files" in the log, and is likely unrelated. I'll bet this is the same macOS bug as #37795. If it is, a similar workaround might work--add a small delay so that we don't close (or CloseWrite) a socket while reading from it.
On darwin_arm64, reading from a socket at the same time as the other
end is closing it will occasionally hang for 60 seconds before
returning ECONNRESET. (This is a macOS issue, not a Go issue.)
Work around this condition by adding a brief sleep before the read.
Fixesgolang#49352 (we hope).
Run-TryBot: Bryan Mills <email@example.com>
Auto-Submit: Bryan Mills <firstname.lastname@example.org>
Reviewed-by: Damien Neil <email@example.com>
TryBot-Result: Gopher Robot <firstname.lastname@example.org>