SIO_UDP_CONNRESET should work on macs now, thx Gavin
parent
435c30c038
commit
ee68085628
|
@ -261,15 +261,16 @@ namespace OpenMetaverse
|
||||||
// This udp socket flag is not supported under mono,
|
// This udp socket flag is not supported under mono,
|
||||||
// so we'll catch the exception and continue
|
// so we'll catch the exception and continue
|
||||||
// Try does not protect some mono versions on mac
|
// Try does not protect some mono versions on mac
|
||||||
if(Util.IsWindows())
|
// this may work now on all platforms
|
||||||
{
|
//if(Util.IsWindows())
|
||||||
|
//{
|
||||||
m_udpSocket.IOControl(SIO_UDP_CONNRESET, new byte[] { 0 }, null);
|
m_udpSocket.IOControl(SIO_UDP_CONNRESET, new byte[] { 0 }, null);
|
||||||
m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag set");
|
m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag set");
|
||||||
}
|
//}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag not supported on this platform, ignoring");
|
// m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag not supported on this platform, ignoring");
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue