reduce absurd viewers blind retries of GroupProfileRequest
parent
057bc648f3
commit
7991bb08f1
|
@ -11096,11 +11096,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UUID lastGroupProfileRequestID = UUID.Zero;
|
||||||
|
double lastGroupProfileRequestTS = Util.GetTimeStampMS();
|
||||||
|
|
||||||
private bool HandleGroupProfileRequest(IClientAPI sender, Packet Pack)
|
private bool HandleGroupProfileRequest(IClientAPI sender, Packet Pack)
|
||||||
{
|
{
|
||||||
|
if(m_GroupsModule == null)
|
||||||
|
return true;
|
||||||
|
|
||||||
GroupProfileRequestPacket groupProfileRequest =
|
GroupProfileRequestPacket groupProfileRequest =
|
||||||
(GroupProfileRequestPacket)Pack;
|
(GroupProfileRequestPacket)Pack;
|
||||||
|
|
||||||
|
|
||||||
#region Packet Session and User Check
|
#region Packet Session and User Check
|
||||||
if (m_checkPackets)
|
if (m_checkPackets)
|
||||||
{
|
{
|
||||||
|
@ -11110,8 +11118,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
if (m_GroupsModule != null)
|
UUID grpID = groupProfileRequest.GroupData.GroupID;
|
||||||
{
|
double ts = Util.GetTimeStampMS();
|
||||||
|
if(grpID == lastGroupProfileRequestID && ts - lastGroupProfileRequestTS < 10000)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
lastGroupProfileRequestID = grpID;
|
||||||
|
lastGroupProfileRequestTS = ts;
|
||||||
|
|
||||||
GroupProfileReplyPacket groupProfileReply = (GroupProfileReplyPacket)PacketPool.Instance.GetPacket(PacketType.GroupProfileReply);
|
GroupProfileReplyPacket groupProfileReply = (GroupProfileReplyPacket)PacketPool.Instance.GetPacket(PacketType.GroupProfileReply);
|
||||||
|
|
||||||
groupProfileReply.AgentData = new GroupProfileReplyPacket.AgentDataBlock();
|
groupProfileReply.AgentData = new GroupProfileReplyPacket.AgentDataBlock();
|
||||||
|
@ -11153,7 +11167,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
|
|
||||||
OutPacket(groupProfileReply, ThrottleOutPacketType.Task);
|
OutPacket(groupProfileReply, ThrottleOutPacketType.Task);
|
||||||
}
|
|
||||||
|
if(grpID == lastGroupProfileRequestID)
|
||||||
|
lastGroupProfileRequestTS = Util.GetTimeStampMS() - 7000;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
private bool HandleGroupMembersRequest(IClientAPI sender, Packet Pack)
|
private bool HandleGroupMembersRequest(IClientAPI sender, Packet Pack)
|
||||||
|
|
Loading…
Reference in New Issue