]> Cypherpunks repositories - gostls13.git/commit
internal/poll: optimize socket completion modes
authorqmuntal <quimmuntal@gmail.com>
Thu, 5 Feb 2026 12:37:08 +0000 (13:37 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Fri, 6 Feb 2026 20:28:41 +0000 (12:28 -0800)
commit228c0468d5a0eefddbfd890565ee8253bd70346e
tree7fce65daf10f0fd12b3c70a45c0eebe56604a271
parentf58a6a8e34d7db14871f2cf9bfd657e44a5c8b7b
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-on: https://go-review.googlesource.com/c/go/+/742281
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/poll/export_windows_test.go [new file with mode: 0644]
src/internal/poll/fd_windows.go
src/internal/poll/fd_windows_test.go
src/internal/syscall/windows/net_windows.go