diff options
author | Justin Clark-Casey (justincc) | 2014-10-08 20:52:17 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:18:40 +0000 |
commit | 746defa094e6b822f74597d047984c17f35ed776 (patch) | |
tree | 9c07efe1af05a49b612317cbd121bbeea2ef75a4 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | |
parent | refactor: Move test clientstack setup code out of BasicCircuitTests into Open... (diff) | |
download | opensim-SC-746defa094e6b822f74597d047984c17f35ed776.zip opensim-SC-746defa094e6b822f74597d047984c17f35ed776.tar.gz opensim-SC-746defa094e6b822f74597d047984c17f35ed776.tar.bz2 opensim-SC-746defa094e6b822f74597d047984c17f35ed776.tar.xz |
Add basic regression test ThrottleTests.TestClientThrottleSetNoLimit
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs index ea3db0b..e9f1ca2 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | |||
@@ -415,6 +415,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
415 | int texture = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); pos += 4; | 415 | int texture = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); pos += 4; |
416 | int asset = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); | 416 | int asset = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); |
417 | 417 | ||
418 | if (ThrottleDebugLevel > 0) | ||
419 | { | ||
420 | long total = resend + land + wind + cloud + task + texture + asset; | ||
421 | m_log.DebugFormat( | ||
422 | "[LLUDPCLIENT]: {0} is setting throttles in {1} to Resend={2}, Land={3}, Wind={4}, Cloud={5}, Task={6}, Texture={7}, Asset={8}, TOTAL = {9}", | ||
423 | AgentID, m_udpServer.Scene.Name, resend, land, wind, cloud, task, texture, asset, total); | ||
424 | } | ||
425 | |||
418 | // Make sure none of the throttles are set below our packet MTU, | 426 | // Make sure none of the throttles are set below our packet MTU, |
419 | // otherwise a throttle could become permanently clogged | 427 | // otherwise a throttle could become permanently clogged |
420 | resend = Math.Max(resend, LLUDPServer.MTU); | 428 | resend = Math.Max(resend, LLUDPServer.MTU); |