]> Cypherpunks repositories - gostls13.git/commit
internal/poll,net: set SIO_UDP_CONNRESET in net
authorqmuntal <quimmuntal@gmail.com>
Tue, 25 Mar 2025 09:29:22 +0000 (10:29 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 25 Mar 2025 18:36:25 +0000 (11:36 -0700)
commit936bb82ddb7f6456e3008b26f0398880d11ce3c0
treeac324883e5eb7b7ce9b3814d25101607d0d5c090
parent35c986489795b7d5619fb14ec5077fd3c1758eb7
internal/poll,net: set SIO_UDP_CONNRESET in net

Setting the SIO_UDP_CONNRESET option in internal/poll.FD.Init
adds unnecessary complexity to the FD.Init signature and
implementation. Better to set it in the net package when initializing
the UDP connection, which is where conceptually it belongs.

While here, update an outdated comment in FD.Init that said the runtime
poller doesn't support I/O operations initialized by the user
outside the internal/poll package. It does support those operations
since CL 561895.

For #19098.
Updates #21172.

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