aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorAdam Frisby2007-11-09 02:24:14 +0000
committerAdam Frisby2007-11-09 02:24:14 +0000
commit18753171271385347b4665433bac776b1dd547c9 (patch)
tree088d9fe3aacfd587430053a186cc8bf61ed27029 /OpenSim/Region
parent* Added some *VERY* experimental highly dodgy throttling of outbound packets ... (diff)
downloadopensim-SC-18753171271385347b4665433bac776b1dd547c9.zip
opensim-SC-18753171271385347b4665433bac776b1dd547c9.tar.gz
opensim-SC-18753171271385347b4665433bac776b1dd547c9.tar.bz2
opensim-SC-18753171271385347b4665433bac776b1dd547c9.tar.xz
* Tweaked throttle sizes. Throttle is now 256kbps outbound per client.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index dfbf74c..2cd7711 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -88,7 +88,7 @@ namespace OpenSim.Region.ClientStack
88 private int lastPacketsReceived = 0; 88 private int lastPacketsReceived = 0;
89 89
90 90
91 private int throttleOutbound = 32768; // Number of bytes allowed to go out per second. (256kbps per client) 91 private int throttleOutbound = 262144; // Number of bytes allowed to go out per second. (256kbps per client)
92 // TODO: Make this variable. Lower throttle on un-ack. Raise over time? 92 // TODO: Make this variable. Lower throttle on un-ack. Raise over time?
93 private int throttleSentPeriod = 0; // Number of bytes sent this period 93 private int throttleSentPeriod = 0; // Number of bytes sent this period
94 94
@@ -270,7 +270,8 @@ namespace OpenSim.Region.ClientStack
270 } 270 }
271 else 271 else
272 { 272 {
273 throttleSentPeriod += 768; // Average large packet size for now. 273 // TODO: May be a bit expensive doing this twice.
274 throttleSentPeriod += nextPacket.Packet.ToBytes().Length;
274 275
275 //is a out going packet 276 //is a out going packet
276 DebugPacket("OUT", nextPacket.Packet); 277 DebugPacket("OUT", nextPacket.Packet);