]> Cypherpunks repositories - gostls13.git/commit
internal/poll: always use SetFileCompletionNotificationModes on non-socket handles
authorqmuntal <quimmuntal@gmail.com>
Tue, 25 Mar 2025 09:42:10 +0000 (10:42 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 25 Mar 2025 18:33:49 +0000 (11:33 -0700)
commit35c986489795b7d5619fb14ec5077fd3c1758eb7
treebabf92f82f02aaddbb4ef1b20c532c4831357935
parent6bf95d40bb9b0ad90315544d2581e1540a040542
internal/poll: always use SetFileCompletionNotificationModes on non-socket handles

SetFileCompletionNotificationModes can be unconditionally called on
non-socket handles.

The Windows poll.FD implementation still doesn't support non-socket
pollable handles yet, so this CL doesn't change any behavior.
Support for pollable non-socket handles will come in subsequent CLs.

For #19098.

Change-Id: I811a61497cfbb26acb566c20367d212335b9d551
Reviewed-on: https://go-review.googlesource.com/c/go/+/660495
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
src/internal/poll/fd_windows.go