* Improve the previous fix by pushing the exception catching down into OGS1 grid services
parent
f793f93817
commit
21c0df53a2
|
@ -159,7 +159,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
serversInfo.GridURL),
|
serversInfo.GridURL),
|
||||||
e);
|
e);
|
||||||
|
|
||||||
throw(e2);
|
throw e2;
|
||||||
}
|
}
|
||||||
|
|
||||||
Hashtable GridRespData = (Hashtable)GridResp.Value;
|
Hashtable GridRespData = (Hashtable)GridResp.Value;
|
||||||
|
@ -223,7 +223,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
serversInfo.GridURL),
|
serversInfo.GridURL),
|
||||||
e);
|
e);
|
||||||
|
|
||||||
throw(e2);
|
throw e2;
|
||||||
}
|
}
|
||||||
|
|
||||||
Hashtable GridRespData = (Hashtable) GridResp.Value;
|
Hashtable GridRespData = (Hashtable) GridResp.Value;
|
||||||
|
@ -342,7 +342,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
{
|
{
|
||||||
gridResp = gridReq.Send(serversInfo.GridURL, 3000);
|
gridResp = gridReq.Send(serversInfo.GridURL, 3000);
|
||||||
}
|
}
|
||||||
catch (WebException e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.ErrorFormat(
|
m_log.ErrorFormat(
|
||||||
"[OGS1 GRID SERVICES]: Communication with the grid server at {0} failed, {1}",
|
"[OGS1 GRID SERVICES]: Communication with the grid server at {0} failed, {1}",
|
||||||
|
@ -431,7 +431,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (WebException)
|
catch
|
||||||
{
|
{
|
||||||
m_log.Error("[OGS1 GRID SERVICES]: " +
|
m_log.Error("[OGS1 GRID SERVICES]: " +
|
||||||
"Region lookup failed for: " + regionHandle.ToString() +
|
"Region lookup failed for: " + regionHandle.ToString() +
|
||||||
|
@ -475,7 +475,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
if (!m_remoteRegionInfoCache.ContainsKey(regionInfo.RegionHandle))
|
if (!m_remoteRegionInfoCache.ContainsKey(regionInfo.RegionHandle))
|
||||||
m_remoteRegionInfoCache.Add(regionInfo.RegionHandle, regionInfo);
|
m_remoteRegionInfoCache.Add(regionInfo.RegionHandle, regionInfo);
|
||||||
}
|
}
|
||||||
catch (WebException)
|
catch
|
||||||
{
|
{
|
||||||
m_log.Error("[OGS1 GRID SERVICES]: " +
|
m_log.Error("[OGS1 GRID SERVICES]: " +
|
||||||
"Region lookup failed for: " + regionName +
|
"Region lookup failed for: " + regionName +
|
||||||
|
@ -564,7 +564,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.Error("MapBlockQuery XMLRPC failure: " + e.ToString());
|
m_log.Error("MapBlockQuery XMLRPC failure: " + e);
|
||||||
return new Hashtable();
|
return new Hashtable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1821,7 +1821,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
if (UUID.TryParse((string)respData["friendID_" + i], out uuid)) tpdAway.Add(uuid);
|
if (UUID.TryParse((string)respData["friendID_" + i], out uuid)) tpdAway.Add(uuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.Error("[OGS1 GRID SERVICES]: InformFriendsInOtherRegion XMLRPC failure: ", e);
|
m_log.Error("[OGS1 GRID SERVICES]: InformFriendsInOtherRegion XMLRPC failure: ", e);
|
||||||
}
|
}
|
||||||
|
@ -1857,7 +1857,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
|
|
||||||
return (bool)respData["success"];
|
return (bool)respData["success"];
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
m_log.Error("[OGS1 GRID SERVICES]: InformFriendsInOtherRegion XMLRPC failure: ", e);
|
m_log.Error("[OGS1 GRID SERVICES]: InformFriendsInOtherRegion XMLRPC failure: ", e);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -540,16 +540,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
||||||
}
|
}
|
||||||
if (httpserver.Length == 0)
|
if (httpserver.Length == 0)
|
||||||
{
|
{
|
||||||
RegionInfo mreg = null;
|
RegionInfo mreg = m_scene.SceneGridService.RequestNeighbouringRegionInfo(regionhandle);
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
mreg = m_scene.SceneGridService.RequestNeighbouringRegionInfo(regionhandle);
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
m_log.WarnFormat("[WorldMap]: Requesting neighbour region info failed with exception {0}", e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mreg != null)
|
if (mreg != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue