Merge branch 'avination' into ubitwork
commit
4a91c65dbc
|
@ -553,7 +553,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void process()
|
public void process()
|
||||||
{
|
{
|
||||||
const int MAX_ASYNC_REQUESTS = 5;
|
const int MAX_ASYNC_REQUESTS = 20;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
|
@ -589,11 +589,14 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||||
|
|
||||||
if (dorequest && !m_blacklistedregions.ContainsKey(st.regionhandle))
|
if (dorequest && !m_blacklistedregions.ContainsKey(st.regionhandle))
|
||||||
{
|
{
|
||||||
// while (nAsyncRequests >= MAX_ASYNC_REQUESTS) // hit the break
|
while (nAsyncRequests >= MAX_ASYNC_REQUESTS) // hit the break
|
||||||
// Thread.Sleep(500);
|
Thread.Sleep(100);
|
||||||
|
|
||||||
Interlocked.Increment(ref nAsyncRequests);
|
Interlocked.Increment(ref nAsyncRequests);
|
||||||
RequestMapItemsAsync(st.agentID, st.flags, st.EstateID, st.godlike, st.itemtype, st.regionhandle);
|
Util.FireAndForget(x =>
|
||||||
|
{
|
||||||
|
RequestMapItemsAsync(st.agentID, st.flags, st.EstateID, st.godlike, st.itemtype, st.regionhandle);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -766,7 +769,6 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||||
OSDMap responseMap = new OSDMap();
|
OSDMap responseMap = new OSDMap();
|
||||||
responseMap["requestID"] = OSD.FromUUID(requestID);
|
responseMap["requestID"] = OSD.FromUUID(requestID);
|
||||||
|
|
||||||
return;
|
|
||||||
Stream os = null;
|
Stream os = null;
|
||||||
try
|
try
|
||||||
{ // send the Post
|
{ // send the Post
|
||||||
|
|
Loading…
Reference in New Issue