NextAnimationSequenceNumber be a udpserver variable with random start
parent
7d967c37f4
commit
1edaf29149
|
@ -358,7 +358,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
// protected HashSet<uint> m_attachmentsSent;
|
// protected HashSet<uint> m_attachmentsSent;
|
||||||
|
|
||||||
private bool m_deliverPackets = true;
|
private bool m_deliverPackets = true;
|
||||||
private int m_animationSequenceNumber = 1;
|
|
||||||
private bool m_SendLogoutPacketWhenClosing = true;
|
private bool m_SendLogoutPacketWhenClosing = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -450,7 +450,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
public string Name { get { return FirstName + " " + LastName; } }
|
public string Name { get { return FirstName + " " + LastName; } }
|
||||||
|
|
||||||
public uint CircuitCode { get { return m_circuitCode; } }
|
public uint CircuitCode { get { return m_circuitCode; } }
|
||||||
public int NextAnimationSequenceNumber { get { return m_animationSequenceNumber++; } }
|
public int NextAnimationSequenceNumber
|
||||||
|
{
|
||||||
|
get { return m_udpServer.NextAnimationSequenceNumber; }
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// As well as it's function in IClientAPI, in LLClientView we are locking on this property in order to
|
/// As well as it's function in IClientAPI, in LLClientView we are locking on this property in order to
|
||||||
|
|
|
@ -293,6 +293,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
/// <summary>Flag to signal when clients should send pings</summary>
|
/// <summary>Flag to signal when clients should send pings</summary>
|
||||||
protected bool m_sendPing;
|
protected bool m_sendPing;
|
||||||
|
|
||||||
|
private int m_animationSequenceNumber;
|
||||||
|
|
||||||
|
public int NextAnimationSequenceNumber
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
m_animationSequenceNumber++;
|
||||||
|
if (m_animationSequenceNumber > 2147482624)
|
||||||
|
m_animationSequenceNumber = 1;
|
||||||
|
return m_animationSequenceNumber;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>> m_pendingCache = new ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>>();
|
private ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>> m_pendingCache = new ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>>();
|
||||||
|
|
||||||
|
@ -438,6 +452,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
m_throttle = new TokenBucket(null, sceneThrottleBps);
|
m_throttle = new TokenBucket(null, sceneThrottleBps);
|
||||||
ThrottleRates = new ThrottleRates(configSource);
|
ThrottleRates = new ThrottleRates(configSource);
|
||||||
|
|
||||||
|
Random rnd = new Random(Util.EnvironmentTickCount());
|
||||||
|
m_animationSequenceNumber = rnd.Next(11474826);
|
||||||
|
|
||||||
if (usePools)
|
if (usePools)
|
||||||
EnablePools();
|
EnablePools();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue