aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index a226b78..1dedcce 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -553,7 +553,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
553 /// </summary> 553 /// </summary>
554 public void process() 554 public void process()
555 { 555 {
556 const int MAX_ASYNC_REQUESTS = 5; 556 const int MAX_ASYNC_REQUESTS = 20;
557 try 557 try
558 { 558 {
559 while (true) 559 while (true)
@@ -589,11 +589,14 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
589 589
590 if (dorequest && !m_blacklistedregions.ContainsKey(st.regionhandle)) 590 if (dorequest && !m_blacklistedregions.ContainsKey(st.regionhandle))
591 { 591 {
592// while (nAsyncRequests >= MAX_ASYNC_REQUESTS) // hit the break 592 while (nAsyncRequests >= MAX_ASYNC_REQUESTS) // hit the break
593// Thread.Sleep(500); 593 Thread.Sleep(100);
594 594
595 Interlocked.Increment(ref nAsyncRequests); 595 Interlocked.Increment(ref nAsyncRequests);
596 RequestMapItemsAsync(st.agentID, st.flags, st.EstateID, st.godlike, st.itemtype, st.regionhandle); 596 Util.FireAndForget(x =>
597 {
598 RequestMapItemsAsync(st.agentID, st.flags, st.EstateID, st.godlike, st.itemtype, st.regionhandle);
599 });
597 } 600 }
598 } 601 }
599 602
@@ -766,7 +769,6 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
766 OSDMap responseMap = new OSDMap(); 769 OSDMap responseMap = new OSDMap();
767 responseMap["requestID"] = OSD.FromUUID(requestID); 770 responseMap["requestID"] = OSD.FromUUID(requestID);
768 771
769return;
770 Stream os = null; 772 Stream os = null;
771 try 773 try
772 { // send the Post 774 { // send the Post