mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Prevent autosplitting of inventory descendents packets. Also reduces the
number of items per packet to 5 to prevent asserts
This commit is contained in:
@@ -1264,7 +1264,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
//
|
||||
// for one example of this kind of thing. In fact, the Linden servers appear to only send about
|
||||
// 6 to 7 items at a time, so let's stick with 6
|
||||
int MAX_ITEMS_PER_PACKET = 6;
|
||||
int MAX_ITEMS_PER_PACKET = 5;
|
||||
|
||||
int totalItems = fetchItems ? items.Count : 0;
|
||||
int totalFolders = fetchFolders ? folders.Count : 0;
|
||||
@@ -1415,6 +1415,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
descend.AgentData.Version = version;
|
||||
descend.AgentData.Descendents = descendents;
|
||||
|
||||
// Disable multiple packets
|
||||
descend.HasVariableBlocks = false;
|
||||
|
||||
if (folders > 0)
|
||||
descend.FolderData = new InventoryDescendentsPacket.FolderDataBlock[folders];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user