diff options
author | Freaky Tech | 2015-03-02 21:04:20 +0100 |
---|---|---|
committer | BlueWall | 2015-03-03 15:34:34 -0500 |
commit | c6731c73fbdd77adc6a0d176f0d60bf866d3e7ec (patch) | |
tree | ca51f3bf3f3033ad344c7e4b0da08f82c9340ad2 /OpenSim/Region/ClientStack/Linden/UDP | |
parent | Fix erratic Npc movement (diff) | |
download | opensim-SC_OLD-c6731c73fbdd77adc6a0d176f0d60bf866d3e7ec.zip opensim-SC_OLD-c6731c73fbdd77adc6a0d176f0d60bf866d3e7ec.tar.gz opensim-SC_OLD-c6731c73fbdd77adc6a0d176f0d60bf866d3e7ec.tar.bz2 opensim-SC_OLD-c6731c73fbdd77adc6a0d176f0d60bf866d3e7ec.tar.xz |
increased IPv4 TTL of LLUDP Sockets
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs index 9bee3ad..1bf47f2 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | |||
@@ -218,6 +218,17 @@ namespace OpenMetaverse | |||
218 | 218 | ||
219 | try | 219 | try |
220 | { | 220 | { |
221 | if (m_udpSocket.Ttl < 128) | ||
222 | { | ||
223 | m_udpSocket.Ttl = 128; | ||
224 | } | ||
225 | } | ||
226 | catch (SocketException) | ||
227 | { | ||
228 | m_log.Debug("[UDPBASE]: Failed to increase default TTL"); | ||
229 | } | ||
230 | try | ||
231 | { | ||
221 | // This udp socket flag is not supported under mono, | 232 | // This udp socket flag is not supported under mono, |
222 | // so we'll catch the exception and continue | 233 | // so we'll catch the exception and continue |
223 | m_udpSocket.IOControl(SIO_UDP_CONNRESET, new byte[] { 0 }, null); | 234 | m_udpSocket.IOControl(SIO_UDP_CONNRESET, new byte[] { 0 }, null); |