[go] internal/poll: optimize socket completion modes

0 views
Skip to first unread message

Quim Muntal (Gerrit)

unread,
Feb 6, 2026, 3:28:48 PM (2 days ago) Feb 6
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Pratt, Damien Neil, Alex Brainman, Go LUCI, golang-co...@googlegroups.com

Quim Muntal submitted the change

Change information

Commit message:
internal/poll: optimize socket completion modes

FILE_SKIP_SET_EVENT_ON_HANDLE is always safe to use.
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS is safe as long as the socket
is provided by an IFS provider.

While here, stop using the kindFileNet type, it doesn't provide any
value.

Fixes #77448
Change-Id: Ib3dc0d68c7ff57b6a1f15f017e60a092e4b87f46
Reviewed-by: Damien Neil <dn...@google.com>
Reviewed-by: Michael Pratt <mpr...@google.com>
Files:
  • A src/internal/poll/export_windows_test.go
  • M src/internal/poll/fd_windows.go
  • M src/internal/poll/fd_windows_test.go
  • M src/internal/syscall/windows/net_windows.go
Change size: M
Delta: 4 files changed, 81 insertions(+), 33 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Michael Pratt, +2 by Damien Neil
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
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: Ib3dc0d68c7ff57b6a1f15f017e60a092e4b87f46
Gerrit-Change-Number: 742281
Gerrit-PatchSet: 4
Gerrit-Owner: Quim Muntal <quimm...@gmail.com>
Gerrit-Reviewer: Alex Brainman <alex.b...@gmail.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Quim Muntal <quimm...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages