dotnet/runtime

Inconsistent behavior of Socket.SendToAsync(SocketAsyncEventArgs)

Open

#34.474 aberto em 2 de abr. de 2020

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)C# (5.445 forks)batch import
area-System.Net.Socketsdocumentationhelp wantedtenet-compatibility

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

Socket.SendToAsync(SocketAsyncEventArgs) method has inconsistent behavior on different platforms if used for UDP socket for sending datagram to loopback address. On Linux (Ubuntu 18.04.03 LTS x64) it returns synchronously and SocketAsyncEventArgs.SocketError is SocketError.ConnectionRefused. On Windows 10 it returns synchronously but SocketError is SocketError.Success.

Guia do colaborador