dotnet/runtime

Socket: AcceptAsync receiving first block not implemented on Unix

Open

#40,374 建立於 2020年8月5日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C# (5,445 fork)batch import
area-System.Net.Socketsenhancementhelp wanted

倉庫指標

Star
 (17,886 star)
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

貢獻者指南