-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
area-System.Net.Socketsbughelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
The implementation of Dns.GetHostAddressesAsync is just a wrapper around the blocking implementation and is queued on the ThreadPool.
This can lead to a ThreadPool starvation when there are many concurrent calls of GetHostAddressAsync in an environment where the DNS is slow.
The code in .Net 4.6 is slightly different but suffers from the same issue:
http://referencesource.microsoft.com/#System/net/System/Net/DNS.cs,744
Windows and Linux both provides real asynchronous calls to resolve a DNS. The asynchronous implementation could use these.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Net.Socketsbughelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors