• Joe Tsai's avatar
    net: return io.ErrClosedPipe when possible from net.Pipe · 8f2a9267
    Joe Tsai authored
    The previous implementation of net.Pipe was just a thin wrapper around
    io.Pipe and did not wrap any of the io.Pipe errors as net.Errors.
    As a result of Hyrum's law, users have come to depend on the fact that
    net.Pipe returns io.ErrClosedPipe when the pipe is closed.
    Thus, we preserve this behavior to avoid regressing such use cases.
    
    Change-Id: I06b387877b944c1c08527601f58983872b7557b4
    Reviewed-on: https://go-review.googlesource.com/81777
    Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    8f2a9267
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...