dotnet/runtime

Use async name resolution on Linux

開放

#33,378 建立於 2020年3月9日

 (8 則留言) (1 個反應) (1 位負責人)C# (5,445 個分叉)batch import
area-System.Netenhancementhelp wantedos-linuxtenet-performance

倉庫指標

星標
 (17,886 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南