dotnet/runtime
GitHub で見るInconsistent behavior of Socket.SendToAsync(SocketAsyncEventArgs)
Open
#34,474 opened on 2020年4月2日
area-System.Net.Socketsdocumentationhelp wantedtenet-compatibility
Repository metrics
- Stars
- (17,886 stars)
- PR merge metrics
- (平均マージ 12d 11h) (30d で 661 merged PRs)
説明
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.