dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.37k stars 4.75k forks source link

Socket Connection Issues on macOS Ventura #106950

Closed oumaima-aarabe closed 2 months ago

oumaima-aarabe commented 2 months ago

I am encountering issues with socket connections in my .NET application on macOS Ventura. The application experiences frequent connection timeouts, connection refused errors, and unexpected socket closures. Troubleshooting Steps Taken: -Verified network connectivity and server availability. -Increased the timeout values using SendTimeout and ReceiveTimeout. -Implemented retry logic with exponential backoff. -Checked firewall settings and network configurations. -Verified the server's IP address and port. -Used asynchronous socket operations (SendAsync and ReceiveAsync). -Ensured sockets are properly closed using socket.Close() or socket.Dispose(). -Tested the same code on other operating systems (e.g., Windows, Linux) without issues.

dotnet-policy-service[bot] commented 2 months ago

Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.

rzikm commented 2 months ago

The information you listed unfortunatelly is not actionable for us. Can you provide a self-contained repro project so that we can attempt to reproduce your issue locally? Also what version of .NET are you using (dotnet --info output) and what is the OS version?

wfurt commented 2 months ago

and perhaps packet captures. This may be environmental and we may not be able to reproduce.