dotnet/runtime

Inconsistent behavior of Socket.SendToAsync(SocketAsyncEventArgs)

開放

#34,474 建立於 2020年4月2日

 (3 則留言) (0 個反應) (0 位負責人)C# (5,445 個分叉)batch import
area-System.Net.Socketsdocumentationhelp wantedtenet-compatibility

倉庫指標

星標
 (17,886 顆星)
PR 合併指標
 (平均合併 12天 11小時) (30 天內合併 661 個 PR)

描述

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.

貢獻者指南