remove excess garbage

This commit is contained in:
UbitUmarov
2020-04-10 22:52:25 +01:00
parent 6fea9dafaf
commit 1c6d454691
15 changed files with 104 additions and 516 deletions

View File

@@ -29,7 +29,9 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.IO;
using System.Reflection;
using System.Text;
using System.Threading;
using log4net;
using Nini.Config;
@@ -58,7 +60,7 @@ namespace OpenSim.Region.ClientStack.Linden
{
public PollServiceInventoryEventArgs thepoll;
public UUID reqID;
public Hashtable request;
public OSHttpRequest request;
}
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -333,11 +335,14 @@ namespace OpenSim.Region.ClientStack.Linden
response["int_response_code"] = 200;
response["content_type"] = "text/plain";
response["bin_response_data"] = System.Text.Encoding.UTF8.GetBytes(
response["bin_response_data"] = Encoding.UTF8.GetBytes(
m_webFetchHandler.FetchInventoryDescendentsRequest(
requestinfo.request["body"].ToString(),
requestinfo.request.InputStream,
String.Empty, String.Empty, null, null)
);
requestinfo.request.InputStream.Dispose();
lock (responses)
{
lock(dropedResponses)
@@ -345,7 +350,6 @@ namespace OpenSim.Region.ClientStack.Linden
if(dropedResponses.Contains(requestID))
{
dropedResponses.Remove(requestID);
requestinfo.request.Clear();
WebFetchInvDescModule.ProcessedRequestsCount++;
return;
}
@@ -355,7 +359,6 @@ namespace OpenSim.Region.ClientStack.Linden
m_log.WarnFormat("[FETCH INVENTORY DESCENDENTS2 MODULE]: Caught in the act of loosing responses! Please report this on mantis #7054");
responses[requestID] = response;
}
requestinfo.request.Clear();
WebFetchInvDescModule.ProcessedRequestsCount++;
}
}