]> Cypherpunks repositories - gostls13.git/commit
runtime: make netpollBreak entries identifiable on Windows
authorqmuntal <quimmuntal@gmail.com>
Fri, 26 Jan 2024 16:57:39 +0000 (17:57 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 1 Feb 2024 19:29:37 +0000 (19:29 +0000)
commit29746b4814bb76a3d5a36fc86967b358f11bbb93
tree0d8a6397fe501c5b03a5755587be49d2ca879f9d
parent18840865d22d58ac97b79c6a972dacada3d9215b
runtime: make netpollBreak entries identifiable on Windows

It is currently not possible to distinguish between a netpollBreak
entry and an entry initiated by external WSA operations (as in #58870).

This CL sets a unique completion key when posting the
netpollBreak entry so that it can be identified as such.

Change-Id: I8e74a7ddc607dc215d6ed8c59d5c3cf47ec8dc62
Reviewed-on: https://go-review.googlesource.com/c/go/+/558895
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/internal/poll/fd_windows_test.go
src/runtime/netpoll_windows.go