dotnet/runtime

Use async name resolution on Linux

Open

#33,378 创建于 2020年3月9日

在 GitHub 查看
 (8 评论) (1 反应) (1 负责人)C# (5,445 fork)batch import
area-System.Netenhancementhelp wantedos-linuxtenet-performance

仓库指标

Star
 (17,886 star)
PR 合并指标
 (平均合并 12天 11小时) (30 天内合并 661 个 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.

贡献者指南