Prevent autosplitting of inventory descendents packets. Also reduces the

number of items per packet to 5 to prevent asserts
0.6.8-post-fixes
Melanie 2009-11-04 03:56:31 +00:00
parent 4d2ecd1236
commit 5bcc02c97b
1 changed files with 4 additions and 1 deletions

View File

@ -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