From e5ef993f2b7ee8b7777d8a413d815c3e8e2ca786 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 31 Jan 2011 18:01:53 -0800 Subject: Fix cm/15627 : Don't block the entire URL on duplicate requests, just that particular request! --- OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs index 4851b33..89f5da3 100644 --- a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs @@ -48,7 +48,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp public string url; public UUID urlcode; public Dictionary requests; - public bool responseSent; } public class RequestData @@ -61,6 +60,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp //public ManualResetEvent ev; public bool requestDone; public int startTime; + public bool responseSent; public string uri; } @@ -200,13 +200,13 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp if (m_RequestMap.ContainsKey(request)) { UrlData urlData = m_RequestMap[request]; - if (!urlData.responseSent) + if (!urlData.requests[request].responseSent) { urlData.requests[request].responseCode = status; urlData.requests[request].responseBody = body; //urlData.requests[request].ev.Set(); urlData.requests[request].requestDone = true; - urlData.responseSent = true; + urlData.requests[request].responseSent = true; } } else -- cgit v1.1