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

貢獻者指南