Prevent autosplitting of inventory descendents packets. Also reduces the
number of items per packet to 5 to prevent asserts0.6.8-post-fixes
parent
4d2ecd1236
commit
5bcc02c97b
|
@ -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
|
// 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
|
// 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 totalItems = fetchItems ? items.Count : 0;
|
||||||
int totalFolders = fetchFolders ? folders.Count : 0;
|
int totalFolders = fetchFolders ? folders.Count : 0;
|
||||||
|
@ -1415,6 +1415,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
descend.AgentData.Version = version;
|
descend.AgentData.Version = version;
|
||||||
descend.AgentData.Descendents = descendents;
|
descend.AgentData.Descendents = descendents;
|
||||||
|
|
||||||
|
// Disable multiple packets
|
||||||
|
descend.HasVariableBlocks = false;
|
||||||
|
|
||||||
if (folders > 0)
|
if (folders > 0)
|
||||||
descend.FolderData = new InventoryDescendentsPacket.FolderDataBlock[folders];
|
descend.FolderData = new InventoryDescendentsPacket.FolderDataBlock[folders];
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue