[go] net: return ErrClosed in Plan 9 if connection is closed during Read

0 views
Skip to first unread message

Richard Miller (Gerrit)

unread,
Jun 10, 2026, 3:21:08 PM (18 hours ago) Jun 10
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Cherry Mui, David du Colombier, Austin Clements, Ian Lance Taylor, Dmitri Shuralyov, Dmitri Shuralyov, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Richard Miller submitted the change

Change information

Commit message:
net: return ErrClosed in Plan 9 if connection is closed during Read

If a network Read is interrupted by another goroutine closing the
local end of the connection, an io.EOF error would be returned,
but on other platforms the network poller would return net.ErrClosed.
Change the Plan 9 implementation to give the same result.

Fixes #79623
Change-Id: I7b14045e7514a550310fe0f81ab21d683a71a0d2
Reviewed-by: David du Colombier <0in...@gmail.com>
Reviewed-by: Cherry Mui <cher...@google.com>
Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
Files:
  • M src/net/fd_plan9.go
Change size: S
Delta: 1 file changed, 11 insertions(+), 4 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I7b14045e7514a550310fe0f81ab21d683a71a0d2
Gerrit-Change-Number: 781845
Gerrit-PatchSet: 2
Gerrit-Owner: Richard Miller <millerr...@gmail.com>
Gerrit-Reviewer: Austin Clements <aus...@google.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: David du Colombier <0in...@gmail.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Richard Miller <millerr...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages