testing ...

0.9.1.0-post-fixes
UbitUmarov 2019-04-09 18:50:08 +01:00
parent 49fb9d6b4b
commit c09b312b05
3 changed files with 10 additions and 3 deletions

View File

@ -5429,7 +5429,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
buf.DataLength = lastpos;
// zero encode is not as spec
m_udpServer.SendUDPPacket(m_udpClient, buf, ThrottleOutPacketType.Task,
delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true);
//delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true);
null, false, true);
tau = new List<EntityUpdate>(30);
tau.Add(eu);
@ -5444,7 +5445,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
buf.Data[17] = (byte)count;
buf.DataLength = pos;
m_udpServer.SendUDPPacket(m_udpClient, buf, ThrottleOutPacketType.Task,
delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true);
//delegate (OutgoingPacket oPacket) { ResendPrimUpdates(tau, oPacket); }, false, true);
null, false, true);
}
}

View File

@ -728,6 +728,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// acknowledgement</param>
public void UpdateRoundTrip(float r)
{
return;
/*
const float ALPHA = 0.125f;
const float BETA = 0.25f;
const float K = 4.0f;
@ -755,6 +757,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//if (RTO != rto)
// m_log.Debug("[LLUDPCLIENT]: Setting RTO to " + RTO + "ms from " + rto + "ms with an RTTVAR of " +
//RTTVAR + " based on new RTT of " + r + "ms");
*/
}
/// <summary>
@ -763,13 +766,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// </summary>
public void BackoffRTO()
{
return;
// Reset SRTT and RTTVAR, we assume they are bogus since things
// didn't work out and we're backing off the timeout
/*
SRTT = 0.0f;
RTTVAR = 0.0f;
// Double the retransmission timeout
RTO = Math.Min(RTO * 2, m_maxRTO);
*/
}
const double MIN_CALLBACK_MS = 20.0;

View File

@ -1214,7 +1214,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// Stats tracking
Interlocked.Increment(ref udpClient.PacketsSent);
PacketsSentCount++;
SyncSend(buffer);
// Keep track of when this packet was sent out (right now)