diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs index 83f60c7..ba4fb76 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs | |||
@@ -99,8 +99,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
99 | 99 | ||
100 | private static Thread[] m_workerThreads = null; | 100 | private static Thread[] m_workerThreads = null; |
101 | 101 | ||
102 | private static DoubleQueue<aPollRequest> m_queue = | 102 | private static OpenSim.Framework.BlockingQueue<aPollRequest> m_queue = |
103 | new DoubleQueue<aPollRequest>(); | 103 | new OpenSim.Framework.BlockingQueue<aPollRequest>(); |
104 | 104 | ||
105 | private static int m_NumberScenes = 0; | 105 | private static int m_NumberScenes = 0; |
106 | 106 | ||
@@ -181,7 +181,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
181 | "httpfetch", | 181 | "httpfetch", |
182 | StatType.Pull, | 182 | StatType.Pull, |
183 | MeasuresOfInterest.AverageChangeOverTime, | 183 | MeasuresOfInterest.AverageChangeOverTime, |
184 | stat => { stat.Value = m_queue.Count; }, | 184 | stat => { stat.Value = m_queue.Count(); }, |
185 | StatVerbosity.Debug); | 185 | StatVerbosity.Debug); |
186 | 186 | ||
187 | StatsManager.RegisterStat(s_processedRequestsStat); | 187 | StatsManager.RegisterStat(s_processedRequestsStat); |
@@ -332,9 +332,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
332 | } | 332 | } |
333 | 333 | ||
334 | if (highPriority) | 334 | if (highPriority) |
335 | m_queue.EnqueueHigh(reqinfo); | 335 | m_queue.PriorityEnqueue(reqinfo); |
336 | else | 336 | else |
337 | m_queue.EnqueueLow(reqinfo); | 337 | m_queue.Enqueue(reqinfo); |
338 | }; | 338 | }; |
339 | 339 | ||
340 | NoEvents = (x, y) => | 340 | NoEvents = (x, y) => |
@@ -381,7 +381,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
381 | m_log.WarnFormat("[FETCH INVENTORY DESCENDENTS2 MODULE]: Caught in the act of loosing responses! Please report this on mantis #7054"); | 381 | m_log.WarnFormat("[FETCH INVENTORY DESCENDENTS2 MODULE]: Caught in the act of loosing responses! Please report this on mantis #7054"); |
382 | responses[requestID] = response; | 382 | responses[requestID] = response; |
383 | } | 383 | } |
384 | 384 | requestinfo.folders.Clear(); | |
385 | requestinfo.request.Clear(); | ||
385 | WebFetchInvDescModule.ProcessedRequestsCount++; | 386 | WebFetchInvDescModule.ProcessedRequestsCount++; |
386 | } | 387 | } |
387 | } | 388 | } |
@@ -444,7 +445,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
444 | { | 445 | { |
445 | Watchdog.UpdateThread(); | 446 | Watchdog.UpdateThread(); |
446 | 447 | ||
447 | aPollRequest poolreq = m_queue.Dequeue(); | 448 | aPollRequest poolreq = m_queue.Dequeue(5000); |
448 | 449 | ||
449 | if (poolreq != null && poolreq.thepoll != null) | 450 | if (poolreq != null && poolreq.thepoll != null) |
450 | { | 451 | { |