From 18753171271385347b4665433bac776b1dd547c9 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 9 Nov 2007 02:24:14 +0000 Subject: [PATCH] * Tweaked throttle sizes. Throttle is now 256kbps outbound per client. --- OpenSim/Region/ClientStack/ClientView.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index dfbf74c148..2cd7711180 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs @@ -88,7 +88,7 @@ namespace OpenSim.Region.ClientStack private int lastPacketsReceived = 0; - private int throttleOutbound = 32768; // Number of bytes allowed to go out per second. (256kbps per client) + private int throttleOutbound = 262144; // Number of bytes allowed to go out per second. (256kbps per client) // TODO: Make this variable. Lower throttle on un-ack. Raise over time? private int throttleSentPeriod = 0; // Number of bytes sent this period @@ -270,7 +270,8 @@ namespace OpenSim.Region.ClientStack } else { - throttleSentPeriod += 768; // Average large packet size for now. + // TODO: May be a bit expensive doing this twice. + throttleSentPeriod += nextPacket.Packet.ToBytes().Length; //is a out going packet DebugPacket("OUT", nextPacket.Packet);