-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Socket: don't assign right endpoint until the connect is successful. (#…
…53581) * Socket: don't assign right endpoint until the connect is successful. 'Right endpoint' must match the address family of the Socket or we can't serialize the LocalEndPoint and RemoteEndPoint. When multiple connect attempts are made against a DualMode Socket with both IPv4 and IPv6 addresses, a failed attempt must not set 'right endpoint'. * SocketTaskExtensionsTest.EnsureMethodsAreCallable: update expected exceptions * PR feedback * EnsureMethodsAreCallable: move ReceiveFromAsync before ConnectAsync to avoid wildcard bind on Windows that leads to a different exception
- Loading branch information
Showing
3 changed files
with
75 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters