Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@cnblogs-dudu
Copy link
Contributor

@cnblogs-dudu cnblogs-dudu commented May 1, 2019

Replace Dns.GetHostAddressesAsync with Dns.GetHostAddresses in Socket.Connect.

Dns.GetHostAddressesAsync(host).GetAwaiter().GetResult() was born at 6/10/2016 in Socket.Connect(string host, int port). Dns.GetHostAddresses was born at 9/23/2016 in System.Net.NameResolution. It's time to ring out the old and ring in the new.

Replace Dns.GetHostAddressesAsync with Dns.GetHostAddresses in Socket.Connect
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@davidsh davidsh added this to the 3.0 milestone May 1, 2019
@stephentoub stephentoub merged commit 787f87f into dotnet:master May 1, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Replace Dns.GetHostAddressesAsync with Dns.GetHostAddresses in Socket.Connect

Commit migrated from dotnet/corefx@787f87f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants