Fix cm/15627 : Don't block the entire URL on duplicate requests, just that particular request!

avinationmerge
Tom 2011-01-31 18:01:53 -08:00
parent 35d29ef3e3
commit e5ef993f2b
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
public string url; public string url;
public UUID urlcode; public UUID urlcode;
public Dictionary<UUID, RequestData> requests; public Dictionary<UUID, RequestData> requests;
public bool responseSent;
} }
public class RequestData public class RequestData
@ -61,6 +60,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
//public ManualResetEvent ev; //public ManualResetEvent ev;
public bool requestDone; public bool requestDone;
public int startTime; public int startTime;
public bool responseSent;
public string uri; public string uri;
} }
@ -200,13 +200,13 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
if (m_RequestMap.ContainsKey(request)) if (m_RequestMap.ContainsKey(request))
{ {
UrlData urlData = m_RequestMap[request]; UrlData urlData = m_RequestMap[request];
if (!urlData.responseSent) if (!urlData.requests[request].responseSent)
{ {
urlData.requests[request].responseCode = status; urlData.requests[request].responseCode = status;
urlData.requests[request].responseBody = body; urlData.requests[request].responseBody = body;
//urlData.requests[request].ev.Set(); //urlData.requests[request].ev.Set();
urlData.requests[request].requestDone = true; urlData.requests[request].requestDone = true;
urlData.responseSent = true; urlData.requests[request].responseSent = true;
} }
} }
else else