aboutsummaryrefslogtreecommitdiff
path: root/src/plugin
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-04-07 15:53:19 -0700
committerIan Lance Taylor <iant@golang.org>2017-04-26 00:03:14 +0000
commitfb4b4342fe298fda640bfa74f24b7bd58519deba (patch)
treec7a059175bfb5630b432a5efe5d467abc59c2794 /src/plugin
parent2fb2ebc32ee37a66e3d6a77ff9450665153a604c (diff)
downloadgo-fb4b4342fe298fda640bfa74f24b7bd58519deba.tar.xz
os, net, internal/poll: return consistent error for closed socket
In the past we returned "use of closed network connection" when using a closed network descriptor in some way. In CL 36799 that was changed to return "use of closed file or network connection". Because programs have no access to a value of this error type (see issue #4373) they resort to doing direct string comparisons (see issue #19252). This CL restores the old error string so that we don't break programs unnecessarily with the 1.9 release. This adds a test to the net package for the expected string. For symmetry check that the os package returns the expected error, which for os already exists as os.ErrClosed. Updates #4373. Fixed #19252. Change-Id: I5b83fd12cfa03501a077cad9336499b819f4a38b Reviewed-on: https://go-review.googlesource.com/39997 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/plugin')
0 files changed, 0 insertions, 0 deletions