aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
diff options
context:
space:
mode:
authorRobert Adams2013-07-09 18:34:24 -0700
committerRobert Adams2013-07-09 18:34:24 -0700
commit38e6da5522a53c7f65eac64ae7b0af929afb1ae6 (patch)
treec12b4e9313661015880aaccfcd770eb8b50a1bf7 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
parentRevert "minor: remove some mono compiler warnings in UserProfileModule" (diff)
downloadopensim-SC_OLD-38e6da5522a53c7f65eac64ae7b0af929afb1ae6.zip
opensim-SC_OLD-38e6da5522a53c7f65eac64ae7b0af929afb1ae6.tar.gz
opensim-SC_OLD-38e6da5522a53c7f65eac64ae7b0af929afb1ae6.tar.bz2
opensim-SC_OLD-38e6da5522a53c7f65eac64ae7b0af929afb1ae6.tar.xz
Comment out old inbound UDP throttling hack. This would cause the UDP
reception thread to sleep for 30ms if the number of available user worker threads got low. It doesn't look like any of the UDP packet types are marked async so this check is 1) unnecessary and 2) really crazy since it stops up the reception thread under heavy load without any indication.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 82fad11..2aab4f9 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -1615,6 +1615,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1615 { 1615 {
1616 IncomingPacket incomingPacket = null; 1616 IncomingPacket incomingPacket = null;
1617 1617
1618 /*
1618 // HACK: This is a test to try and rate limit packet handling on Mono. 1619 // HACK: This is a test to try and rate limit packet handling on Mono.
1619 // If it works, a more elegant solution can be devised 1620 // If it works, a more elegant solution can be devised
1620 if (Util.FireAndForgetCount() < 2) 1621 if (Util.FireAndForgetCount() < 2)
@@ -1622,6 +1623,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1622 //m_log.Debug("[LLUDPSERVER]: Incoming packet handler is sleeping"); 1623 //m_log.Debug("[LLUDPSERVER]: Incoming packet handler is sleeping");
1623 Thread.Sleep(30); 1624 Thread.Sleep(30);
1624 } 1625 }
1626 */
1625 1627
1626 if (packetInbox.Dequeue(100, ref incomingPacket)) 1628 if (packetInbox.Dequeue(100, ref incomingPacket))
1627 { 1629 {