-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
area-System.Netbugos-mac-os-xmacOS aka OSXmacOS aka OSXtenet-compatibilityIncompatibility with previous versions or .NET FrameworkIncompatibility with previous versions or .NET Framework
Milestone
Description
Hello,
when using SendPingAsync as root on a macOS system, a SocketException is thrown (System.Net.Sockets.SocketException (56): Socket is already connected). If run as a regular user, it works. It also works for root if you use .NET 2.2. This leads me to believe that this behaviour was introduced in this commit c6efaf4. I also tested this on different macOS machines and the outcome was the same, but on a Ubuntu machine it works with sudo as well.
Here is the program I used to reproduce this issue: https://gist.github.com/pgrosslicht/0acf36322247793925dd62692b9202cd.
Here are screenshots running said program with .NET 3.1 with and without sudo and with .NET 2.2 with and without sudo.
Thanks in advance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Netbugos-mac-os-xmacOS aka OSXmacOS aka OSXtenet-compatibilityIncompatibility with previous versions or .NET FrameworkIncompatibility with previous versions or .NET Framework

