dotnet/runtime

Use async name resolution on Linux

Open

#33.378 geöffnet am 9. März 2020

Auf GitHub ansehen
 (8 Kommentare) (1 Reaktion) (1 zugewiesene Person)C# (5.445 Forks)batch import
area-System.Netenhancementhelp wantedos-linuxtenet-performance

Repository-Metriken

Stars
 (17.886 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 12T 11h) (661 gemergte PRs in 30 T)

Beschreibung

Edit by @antonfirsov:

this issue has been reopened to track the missing feature, and the related disabled test (see #70089). We should not use getaddrinfo_a as proposed by the original opening comment, since it turned out to be sub-optimal (see #48666).


We should use getaddrinfo_a on Linux for async name resolution. It supports cancellation as well, bringing us in line with Windows support. See sample code for a usage example.

Note: Today we do async over sync on Linux.

Contributor Guide