cosmetics
parent
f0fc1f628f
commit
f70f0b5ffd
|
@ -169,11 +169,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
|
||||
if (req.HttpContext.IsSending())
|
||||
{
|
||||
if ((Environment.TickCount - req.RequestTime) > req.PollServiceArgs.TimeOutms)
|
||||
{
|
||||
req.PollServiceArgs.Drop(req.RequestID, req.PollServiceArgs.Id);
|
||||
}
|
||||
else
|
||||
ReQueueEvent(req);
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -516,11 +516,11 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
|
||||
totalSize += EventHeader.Length;
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
StringBuilder sb = new StringBuilder(1024);
|
||||
LLSDxmlEncode.AddEndArray(sb); // events array
|
||||
LLSDxmlEncode.AddElem("id", thisID, sb);
|
||||
LLSDxmlEncode.AddEndMap(sb);
|
||||
element = Encoding.UTF8.GetBytes(LLSDxmlEncode.End(sb));
|
||||
element = LLSDxmlEncode.EndToNBBytes(sb);
|
||||
elements.Add(element);
|
||||
totalSize += element.Length;
|
||||
|
||||
|
@ -531,8 +531,9 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
//temporary
|
||||
byte[] finalData = new byte[totalSize];
|
||||
int dst = 0;
|
||||
foreach(byte[] src in elements)
|
||||
for(int i = 0; i < elements.Count; ++i)
|
||||
{
|
||||
byte[] src = elements[i];
|
||||
Array.Copy(src, 0, finalData, dst, src.Length);
|
||||
dst += src.Length;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue