dotnet/runtime

Socket: AcceptAsync receiving first block not implemented on Unix

オープン

#40,374 opened on 2020/08/05

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C# (5,445 件のフォーク)batch import
area-System.Net.Socketsenhancementhelp wanted

Repository metrics

Stars
 (17,886 個のスター)
PR merge metrics
 (平均マージ 12d 11h) (30d で 661 merged PRs)

説明

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

コントリビューターガイド