diff options
author | Melanie | 2012-07-08 21:53:23 +0200 |
---|---|---|
committer | Melanie | 2012-07-08 21:53:23 +0200 |
commit | 1077d7b6f5874a036752f1ca672ce6b8c41004a0 (patch) | |
tree | 00e7cc690bbdf87d9ca78ac2d123deb7003cc479 /OpenSim | |
parent | Revamp map block sending to eliminate overload of the grid server connection (diff) | |
download | opensim-SC-1077d7b6f5874a036752f1ca672ce6b8c41004a0.zip opensim-SC-1077d7b6f5874a036752f1ca672ce6b8c41004a0.tar.gz opensim-SC-1077d7b6f5874a036752f1ca672ce6b8c41004a0.tar.bz2 opensim-SC-1077d7b6f5874a036752f1ca672ce6b8c41004a0.tar.xz |
Reinstate parallel fetching of residents and remove a left over return from debugging
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 12 |
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 | ||
769 | return; | ||
770 | Stream os = null; | 772 | Stream os = null; |
771 | try | 773 | try |
772 | { // send the Post | 774 | { // send the Post |