From 54ab9e7d4dd04042cb36b292c3896d20f3df8060 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 30 Oct 2014 21:57:20 +0000 Subject: [PATCH] set udp SocketOptionName.ReuseAddress to false, to not allow two regions to bind to same port, as seems to be possible at least with mono 3.2.8, same as patch just pushed to core by justin. This is not necessary on windows, possible a bug on some mono versions. --- OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs index 881e76876d..a09195c3d2 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs @@ -152,6 +152,8 @@ namespace OpenMetaverse SocketType.Dgram, ProtocolType.Udp); + m_udpSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, false); + try { // This udp socket flag is not supported under mono,