dotnet/runtime
Ver no GitHubSocket: AcceptAsync receiving first block not implemented on Unix
Open
#40.374 aberto em 5 de ago. de 2020
area-System.Net.Socketsenhancementhelp wanted
Métricas do repositório
- Stars
- (17.886 stars)
- Métricas de merge de PR
- (Mesclagem média 12d 11h) (661 fundiu PRs em 30d)
Description
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