dotnet/runtime

Socket: AcceptAsync receiving first block not implemented on Unix

开放

#40,374 创建于 2020年8月5日

 (1 条评论) (0 个反应) (0 位负责人)C# (5,445 个派生)batch import
area-System.Net.Socketsenhancementhelp wanted

仓库指标

星标
 (17,886 个星标)
PR 合并指标
 (平均合并 12天 11小时) (30 天内合并 661 个 PR)

描述

This is a follow-up on https://github.com/dotnet/runtime/issues/32633#issuecomment-667192865.

Windows has a built-in support for receiving bytes with AcceptEx, which can be utilized by BeginAccept/EndAccept overloads and AcceptAsync(SocketAsyncEventArgs). Since such a socket operation does not exist on Unix, we throw PlatformNotSupportedException on those platforms. We may consider emulating this feature instead.

Related: #1483

贡献者指南