Closed SynergiAios closed 6 years ago
To be quite honest, I don't understand why this exception even raises. Checking your code, you have a try catch around it.
if (socket.AddressFamily == AddressFamily.InterNetwork)
{
socket.Ttl = NetConstants.SocketTTL;
try { socket.DontFragment = true; }
catch (SocketException e)
{
NetUtils.DebugWriteError("[B]DontFragment error: {0}", e.SocketErrorCode);
}
try { socket.EnableBroadcast = true; }
catch (SocketException e)
{
NetUtils.DebugWriteError("[B]Broadcast error: {0}", e.SocketErrorCode);
}
}
Further Investigations, using the current nuget package 0.8.1.1-beta, this issue occurs. Using the current version of the repo and using a project reference and not a nuget package, the behaviour is as expected. The try-catch block triggers and puts into the logger, that the dontFragment is not supported. It doesn't crash any further and keeps running. Any Idea on this strange behaviour?
@SynergiAios seems that this is some specific ios/netcore bug.
@SynergiAios fixed
@RevenantX just saw it, thx awesome.
It so sad, written in Net Standard, and still have to insert special rules for MacOS. Whom to blame here would be interesting for me :) (Apple or Microsoft?)
@SynergiAios i think both)
I have an simple issue, I wanted to give the netstandard 2.0 Version of LiteNetLib a try, but I got an instant issue when starting.
Error:
Library version: 0.8.1.1-beta
Framework: dotnetStandard 2.0, dotnet Core 2.1
OS: MacOs