[go] internal/poll: check for connection closing during I/O in Plan 9

1 view
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Aug 10, 2026, 6:19:44 PM (12 hours ago) Aug 10
to Richard Miller, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Damien Neil, Dmitri Shuralyov, Dmitri Shuralyov, golang...@luci-project-accounts.iam.gserviceaccount.com, David du Colombier, Ian Lance Taylor, Michael Pratt, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
internal/poll: check for connection closing during I/O in Plan 9

CL 781845 was an attempt to make Plan 9 behaviour match other
platforms when a net connection is closed while Read/Write is
outstanding. That didn't work in some circumstances, returning
"file already closed" instead of "use of closed network connection".

This change reverts CL 781845 and makes the check in internal/poll
instead of in the net package.

Fixes #79623
Change-Id: If6b7fc45b965df1b3b8b79bf2892c8413633cf23
Reviewed-by: Damien Neil <dn...@google.com>
Auto-Submit: Damien Neil <dn...@google.com>
Reviewed-by: David du Colombier <0in...@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
Files:
  • M src/internal/poll/fd_plan9.go
  • M src/net/fd_plan9.go
Change size: S
Delta: 2 files changed, 6 insertions(+), 10 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: If6b7fc45b965df1b3b8b79bf2892c8413633cf23
Gerrit-Change-Number: 808000
Gerrit-PatchSet: 3
Gerrit-Owner: Richard Miller <millerr...@gmail.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: David du Colombier <0in...@gmail.com>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Richard Miller <millerr...@gmail.com>
Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages