From a56664cf5910876b8ab7ca175bdb88918ec15280 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 11 Feb 2008 01:43:54 +0000 Subject: * um, Prim crossings? Experimental. * Backup your database just in case. --- .../Region/Communications/OGS1/OGS1GridServices.cs | 51 +++++++++++++++------- 1 file changed, 36 insertions(+), 15 deletions(-) (limited to 'OpenSim/Region/Communications') diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 29f5472..f8ab9ef 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -865,40 +865,36 @@ namespace OpenSim.Region.Communications.OGS1 catch (RemotingException e) { NoteDeadRegion(regionHandle); - m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName + - " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); + m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regionHandle); m_log.Debug(e.ToString()); return false; } catch (SocketException e) { NoteDeadRegion(regionHandle); - m_log.Warn("Socket Error: Unable to connect to adjacent region: " + regInfo.RegionName + " " + - regInfo.RegionLocX + "," + regInfo.RegionLocY); + m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regionHandle); m_log.Debug(e.ToString()); return false; } catch (InvalidCredentialException e) { NoteDeadRegion(regionHandle); - m_log.Warn("Invalid Credentials: Unable to connect to adjacent region: " + regInfo.RegionName + - " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); + m_log.Warn("Invalid Credential Exception: Invalid Credentials : " + regionHandle); m_log.Debug(e.ToString()); return false; } catch (AuthenticationException e) { NoteDeadRegion(regionHandle); - m_log.Warn("Authentication exception: Unable to connect to adjacent region: " + - regInfo.RegionName + " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); + m_log.Warn("Authentication exception: Unable to connect to adjacent region: " + regionHandle); + m_log.Debug(e.ToString()); return false; } catch (Exception e) { NoteDeadRegion(regionHandle); - m_log.Warn("Unknown exception: Unable to connect to adjacent region: " + regInfo.RegionName + - " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); + m_log.Warn("Unknown exception: Unable to connect to adjacent region: " + regionHandle); m_log.Debug(e.ToString()); return false; } @@ -1005,14 +1001,37 @@ namespace OpenSim.Region.Communications.OGS1 catch (RemotingException e) { NoteDeadRegion(regionHandle); - m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName + - " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); + m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regionHandle); m_log.Debug(e.ToString()); return false; } - catch + catch (SocketException e) { NoteDeadRegion(regionHandle); + m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regionHandle); + m_log.Debug(e.ToString()); + return false; + } + catch (InvalidCredentialException e) + { + NoteDeadRegion(regionHandle); + m_log.Warn("Invalid Credential Exception: Invalid Credentials : " + regionHandle); + m_log.Debug(e.ToString()); + return false; + } + catch (AuthenticationException e) + { + NoteDeadRegion(regionHandle); + m_log.Warn("Authentication exception: Unable to connect to adjacent region: " + regionHandle); + + m_log.Debug(e.ToString()); + return false; + } + catch (Exception e) + { + NoteDeadRegion(regionHandle); + m_log.Warn("Unknown exception: Unable to connect to adjacent region: " + regionHandle); + m_log.Debug(e.ToString()); return false; } } @@ -1205,15 +1224,17 @@ namespace OpenSim.Region.Communications.OGS1 // Is this necessary? try { - //return m_localBackend.TriggerExpectPrim(regionHandle,primID, objData); + m_localBackend.TriggerExpectPrim(regionHandle, primID, objData); + return true; //m_localBackend. - return false; + } catch (RemotingException e) { m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString()); return false; } + return false; } /// -- cgit v1.1