diff options
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index fb8dcf6..5e7e238 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | |||
@@ -95,9 +95,9 @@ namespace OpenSim.Region.Communications.OGS1 | |||
95 | public RegionCommsListener RegisterRegion(RegionInfo regionInfo) | 95 | public RegionCommsListener RegisterRegion(RegionInfo regionInfo) |
96 | { | 96 | { |
97 | m_log.InfoFormat( | 97 | m_log.InfoFormat( |
98 | "[OGS1 GRID SERVICES]: Attempting to register region {0} with grid at {1}", | 98 | "[OGS1 GRID SERVICES]: Attempting to register region {0} with grid at {1}", |
99 | regionInfo.RegionName, serversInfo.GridURL); | 99 | regionInfo.RegionName, serversInfo.GridURL); |
100 | 100 | ||
101 | Hashtable GridParams = new Hashtable(); | 101 | Hashtable GridParams = new Hashtable(); |
102 | // Login / Authentication | 102 | // Login / Authentication |
103 | 103 | ||
@@ -122,7 +122,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
122 | // not at all. Current strategy is to put the code in place to support the validity of this information | 122 | // not at all. Current strategy is to put the code in place to support the validity of this information |
123 | // and to roll forward debugging any issues from that point | 123 | // and to roll forward debugging any issues from that point |
124 | // | 124 | // |
125 | // this particular section of the mod attempts to supply a value from the region's xml file to the grid | 125 | // this particular section of the mod attempts to supply a value from the region's xml file to the grid |
126 | // server for the UUID of the region's owner (master avatar) | 126 | // server for the UUID of the region's owner (master avatar) |
127 | GridParams["master_avatar_uuid"] = regionInfo.MasterAvatarAssignedUUID.ToString(); | 127 | GridParams["master_avatar_uuid"] = regionInfo.MasterAvatarAssignedUUID.ToString(); |
128 | 128 | ||
@@ -139,14 +139,14 @@ namespace OpenSim.Region.Communications.OGS1 | |||
139 | } | 139 | } |
140 | catch (Exception e) | 140 | catch (Exception e) |
141 | { | 141 | { |
142 | Exception e2 | 142 | Exception e2 |
143 | = new Exception( | 143 | = new Exception( |
144 | String.Format("Unable to connect to grid at {0}. Grid service not running?", serversInfo.GridURL), | 144 | String.Format("Unable to connect to grid at {0}. Grid service not running?", serversInfo.GridURL), |
145 | e); | 145 | e); |
146 | 146 | ||
147 | throw(e2); | 147 | throw(e2); |
148 | } | 148 | } |
149 | 149 | ||
150 | Hashtable GridRespData = (Hashtable)GridResp.Value; | 150 | Hashtable GridRespData = (Hashtable)GridResp.Value; |
151 | Hashtable griddatahash = GridRespData; | 151 | Hashtable griddatahash = GridRespData; |
152 | 152 | ||
@@ -154,9 +154,9 @@ namespace OpenSim.Region.Communications.OGS1 | |||
154 | if (GridRespData.ContainsKey("error")) | 154 | if (GridRespData.ContainsKey("error")) |
155 | { | 155 | { |
156 | string errorstring = (string) GridRespData["error"]; | 156 | string errorstring = (string) GridRespData["error"]; |
157 | 157 | ||
158 | Exception e = new Exception(String.Format("Unable to connect to grid at {0}: {1}", serversInfo.GridURL, errorstring)); | 158 | Exception e = new Exception(String.Format("Unable to connect to grid at {0}: {1}", serversInfo.GridURL, errorstring)); |
159 | 159 | ||
160 | throw e; | 160 | throw e; |
161 | } | 161 | } |
162 | else | 162 | else |
@@ -170,9 +170,9 @@ namespace OpenSim.Region.Communications.OGS1 | |||
170 | m_queuedGridSettings.Add("allow_forceful_banlines", "FALSE"); | 170 | m_queuedGridSettings.Add("allow_forceful_banlines", "FALSE"); |
171 | } | 171 | } |
172 | } | 172 | } |
173 | 173 | ||
174 | m_log.InfoFormat( | 174 | m_log.InfoFormat( |
175 | "[OGS1 GRID SERVICES]: Region {0} successfully registered with grid at {1}", | 175 | "[OGS1 GRID SERVICES]: Region {0} successfully registered with grid at {1}", |
176 | regionInfo.RegionName, serversInfo.GridURL); | 176 | regionInfo.RegionName, serversInfo.GridURL); |
177 | } | 177 | } |
178 | return m_localBackend.RegisterRegion(regionInfo); | 178 | return m_localBackend.RegisterRegion(regionInfo); |
@@ -245,7 +245,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
245 | 245 | ||
246 | string externalIpStr = String.Empty; | 246 | string externalIpStr = String.Empty; |
247 | try | 247 | try |
248 | { | 248 | { |
249 | externalIpStr = Util.GetHostFromDNS(simIp).ToString(); | 249 | externalIpStr = Util.GetHostFromDNS(simIp).ToString(); |
250 | } | 250 | } |
251 | catch (SocketException e) | 251 | catch (SocketException e) |
@@ -253,16 +253,16 @@ namespace OpenSim.Region.Communications.OGS1 | |||
253 | m_log.WarnFormat("RequestNeighbours(): Lookup of neighbour {0} failed! Not including in neighbours list. {1}", simIp, e); | 253 | m_log.WarnFormat("RequestNeighbours(): Lookup of neighbour {0} failed! Not including in neighbours list. {1}", simIp, e); |
254 | continue; | 254 | continue; |
255 | } | 255 | } |
256 | 256 | ||
257 | SimpleRegionInfo sri = new SimpleRegionInfo(regX, regY, simIp, port); | 257 | SimpleRegionInfo sri = new SimpleRegionInfo(regX, regY, simIp, port); |
258 | 258 | ||
259 | sri.RemotingPort = Convert.ToUInt32(neighbourData["remoting_port"]); | 259 | sri.RemotingPort = Convert.ToUInt32(neighbourData["remoting_port"]); |
260 | 260 | ||
261 | if (neighbourData.ContainsKey("http_port")) | 261 | if (neighbourData.ContainsKey("http_port")) |
262 | { | 262 | { |
263 | sri.HttpPort = Convert.ToUInt32(neighbourData["http_port"]); | 263 | sri.HttpPort = Convert.ToUInt32(neighbourData["http_port"]); |
264 | } | 264 | } |
265 | 265 | ||
266 | sri.RegionID = new LLUUID((string) neighbourData["uuid"]); | 266 | sri.RegionID = new LLUUID((string) neighbourData["uuid"]); |
267 | 267 | ||
268 | neighbours.Add(sri); | 268 | neighbours.Add(sri); |
@@ -274,7 +274,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
274 | } | 274 | } |
275 | 275 | ||
276 | /// <summary> | 276 | /// <summary> |
277 | /// | 277 | /// |
278 | /// </summary> | 278 | /// </summary> |
279 | /// <param name="regionHandle"></param> | 279 | /// <param name="regionHandle"></param> |
280 | /// <returns></returns> | 280 | /// <returns></returns> |
@@ -309,7 +309,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
309 | 309 | ||
310 | regionInfo.RemotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); | 310 | regionInfo.RemotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); |
311 | regionInfo.RemotingAddress = internalIpStr; | 311 | regionInfo.RemotingAddress = internalIpStr; |
312 | 312 | ||
313 | if (responseData.ContainsKey("http_port")) | 313 | if (responseData.ContainsKey("http_port")) |
314 | { | 314 | { |
315 | regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]); | 315 | regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]); |
@@ -327,7 +327,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
327 | } | 327 | } |
328 | 328 | ||
329 | /// <summary> | 329 | /// <summary> |
330 | /// | 330 | /// |
331 | /// </summary> | 331 | /// </summary> |
332 | /// <param name="regionHandle"></param> | 332 | /// <param name="regionHandle"></param> |
333 | /// <returns></returns> | 333 | /// <returns></returns> |
@@ -372,7 +372,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
372 | 372 | ||
373 | regionInfo.RemotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); | 373 | regionInfo.RemotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); |
374 | regionInfo.RemotingAddress = internalIpStr; | 374 | regionInfo.RemotingAddress = internalIpStr; |
375 | 375 | ||
376 | if (responseData.ContainsKey("http_port")) | 376 | if (responseData.ContainsKey("http_port")) |
377 | { | 377 | { |
378 | regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]); | 378 | regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]); |
@@ -429,7 +429,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
429 | 429 | ||
430 | regionInfo.RemotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); | 430 | regionInfo.RemotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); |
431 | regionInfo.RemotingAddress = internalIpStr; | 431 | regionInfo.RemotingAddress = internalIpStr; |
432 | 432 | ||
433 | if (responseData.ContainsKey("http_port")) | 433 | if (responseData.ContainsKey("http_port")) |
434 | { | 434 | { |
435 | regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]); | 435 | regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]); |
@@ -451,7 +451,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
451 | } | 451 | } |
452 | 452 | ||
453 | /// <summary> | 453 | /// <summary> |
454 | /// | 454 | /// |
455 | /// </summary> | 455 | /// </summary> |
456 | /// <param name="minX"></param> | 456 | /// <param name="minX"></param> |
457 | /// <param name="minY"></param> | 457 | /// <param name="minY"></param> |
@@ -601,7 +601,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
601 | #region m_interRegion Comms | 601 | #region m_interRegion Comms |
602 | 602 | ||
603 | /// <summary> | 603 | /// <summary> |
604 | /// | 604 | /// |
605 | /// </summary> | 605 | /// </summary> |
606 | private void StartRemoting() | 606 | private void StartRemoting() |
607 | { | 607 | { |
@@ -688,55 +688,55 @@ namespace OpenSim.Region.Communications.OGS1 | |||
688 | catch (RemotingException e) | 688 | catch (RemotingException e) |
689 | { | 689 | { |
690 | NoteDeadRegion(regionHandle); | 690 | NoteDeadRegion(regionHandle); |
691 | 691 | ||
692 | m_log.WarnFormat( | 692 | m_log.WarnFormat( |
693 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 693 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
694 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 694 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
695 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 695 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
696 | 696 | ||
697 | return false; | 697 | return false; |
698 | } | 698 | } |
699 | catch (SocketException e) | 699 | catch (SocketException e) |
700 | { | 700 | { |
701 | NoteDeadRegion(regionHandle); | 701 | NoteDeadRegion(regionHandle); |
702 | 702 | ||
703 | m_log.WarnFormat( | 703 | m_log.WarnFormat( |
704 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 704 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
705 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 705 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
706 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 706 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
707 | 707 | ||
708 | return false; | 708 | return false; |
709 | } | 709 | } |
710 | catch (InvalidCredentialException e) | 710 | catch (InvalidCredentialException e) |
711 | { | 711 | { |
712 | NoteDeadRegion(regionHandle); | 712 | NoteDeadRegion(regionHandle); |
713 | 713 | ||
714 | m_log.WarnFormat( | 714 | m_log.WarnFormat( |
715 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 715 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
716 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 716 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
717 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 717 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
718 | 718 | ||
719 | return false; | 719 | return false; |
720 | } | 720 | } |
721 | catch (AuthenticationException e) | 721 | catch (AuthenticationException e) |
722 | { | 722 | { |
723 | NoteDeadRegion(regionHandle); | 723 | NoteDeadRegion(regionHandle); |
724 | 724 | ||
725 | m_log.WarnFormat( | 725 | m_log.WarnFormat( |
726 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 726 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
727 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 727 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
728 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 728 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
729 | 729 | ||
730 | return false; | 730 | return false; |
731 | } | 731 | } |
732 | catch (Exception e) | 732 | catch (Exception e) |
733 | { | 733 | { |
734 | NoteDeadRegion(regionHandle); | 734 | NoteDeadRegion(regionHandle); |
735 | 735 | ||
736 | m_log.WarnFormat("[OGS1 GRID SERVICES]: Unable to connect to adjacent region: {0} {1},{2}", | 736 | m_log.WarnFormat("[OGS1 GRID SERVICES]: Unable to connect to adjacent region: {0} {1},{2}", |
737 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 737 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
738 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 738 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
739 | 739 | ||
740 | return false; | 740 | return false; |
741 | } | 741 | } |
742 | } | 742 | } |
@@ -748,7 +748,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
748 | } | 748 | } |
749 | 749 | ||
750 | /// <summary> | 750 | /// <summary> |
751 | /// | 751 | /// |
752 | /// </summary> | 752 | /// </summary> |
753 | /// <param name="regionHandle"></param> | 753 | /// <param name="regionHandle"></param> |
754 | /// <param name="agentData"></param> | 754 | /// <param name="agentData"></param> |
@@ -797,56 +797,56 @@ namespace OpenSim.Region.Communications.OGS1 | |||
797 | catch (RemotingException e) | 797 | catch (RemotingException e) |
798 | { | 798 | { |
799 | NoteDeadRegion(regionHandle); | 799 | NoteDeadRegion(regionHandle); |
800 | 800 | ||
801 | m_log.WarnFormat( | 801 | m_log.WarnFormat( |
802 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 802 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
803 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 803 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
804 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 804 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
805 | 805 | ||
806 | return false; | 806 | return false; |
807 | } | 807 | } |
808 | catch (SocketException e) | 808 | catch (SocketException e) |
809 | { | 809 | { |
810 | NoteDeadRegion(regionHandle); | 810 | NoteDeadRegion(regionHandle); |
811 | 811 | ||
812 | m_log.WarnFormat( | 812 | m_log.WarnFormat( |
813 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 813 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
814 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 814 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
815 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 815 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
816 | 816 | ||
817 | return false; | 817 | return false; |
818 | } | 818 | } |
819 | catch (InvalidCredentialException e) | 819 | catch (InvalidCredentialException e) |
820 | { | 820 | { |
821 | NoteDeadRegion(regionHandle); | 821 | NoteDeadRegion(regionHandle); |
822 | 822 | ||
823 | m_log.WarnFormat( | 823 | m_log.WarnFormat( |
824 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 824 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
825 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 825 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
826 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 826 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
827 | 827 | ||
828 | return false; | 828 | return false; |
829 | } | 829 | } |
830 | catch (AuthenticationException e) | 830 | catch (AuthenticationException e) |
831 | { | 831 | { |
832 | NoteDeadRegion(regionHandle); | 832 | NoteDeadRegion(regionHandle); |
833 | 833 | ||
834 | m_log.WarnFormat( | 834 | m_log.WarnFormat( |
835 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 835 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
836 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 836 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
837 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 837 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
838 | 838 | ||
839 | return false; | 839 | return false; |
840 | } | 840 | } |
841 | catch (Exception e) | 841 | catch (Exception e) |
842 | { | 842 | { |
843 | NoteDeadRegion(regionHandle); | 843 | NoteDeadRegion(regionHandle); |
844 | 844 | ||
845 | m_log.WarnFormat( | 845 | m_log.WarnFormat( |
846 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 846 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
847 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 847 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
848 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 848 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
849 | 849 | ||
850 | return false; | 850 | return false; |
851 | } | 851 | } |
852 | } | 852 | } |
@@ -857,17 +857,17 @@ namespace OpenSim.Region.Communications.OGS1 | |||
857 | SerializableRegionInfo regInfo = null; | 857 | SerializableRegionInfo regInfo = null; |
858 | try | 858 | try |
859 | { | 859 | { |
860 | // You may ask why this is in here... | 860 | // You may ask why this is in here... |
861 | // The region asking the grid services about itself.. | 861 | // The region asking the grid services about itself.. |
862 | // And, surprisingly, the reason is.. it doesn't know | 862 | // And, surprisingly, the reason is.. it doesn't know |
863 | // it's own remoting port! How special. | 863 | // it's own remoting port! How special. |
864 | RegionUpData regiondata = new RegionUpData(region.RegionLocX, region.RegionLocY, region.ExternalHostName, region.InternalEndPoint.Port); | 864 | RegionUpData regiondata = new RegionUpData(region.RegionLocX, region.RegionLocY, region.ExternalHostName, region.InternalEndPoint.Port); |
865 | 865 | ||
866 | region = new SerializableRegionInfo(RequestNeighbourInfo(region.RegionHandle)); | 866 | region = new SerializableRegionInfo(RequestNeighbourInfo(region.RegionHandle)); |
867 | region.RemotingAddress = region.ExternalHostName; | 867 | region.RemotingAddress = region.ExternalHostName; |
868 | region.RemotingPort = NetworkServersInfo.RemotingListenerPort; | 868 | region.RemotingPort = NetworkServersInfo.RemotingListenerPort; |
869 | region.HttpPort = serversInfo.HttpListenerPort; | 869 | region.HttpPort = serversInfo.HttpListenerPort; |
870 | 870 | ||
871 | if (m_localBackend.RegionUp(region, regionhandle)) | 871 | if (m_localBackend.RegionUp(region, regionhandle)) |
872 | { | 872 | { |
873 | return true; | 873 | return true; |
@@ -904,7 +904,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
904 | } | 904 | } |
905 | else | 905 | else |
906 | { | 906 | { |
907 | // We're trying to inform ourselves via remoting. | 907 | // We're trying to inform ourselves via remoting. |
908 | // This is here because we're looping over the listeners before we get here. | 908 | // This is here because we're looping over the listeners before we get here. |
909 | // Odd but it should work. | 909 | // Odd but it should work. |
910 | return true; | 910 | return true; |
@@ -963,7 +963,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
963 | } | 963 | } |
964 | 964 | ||
965 | /// <summary> | 965 | /// <summary> |
966 | /// | 966 | /// |
967 | /// </summary> | 967 | /// </summary> |
968 | /// <param name="regionHandle"></param> | 968 | /// <param name="regionHandle"></param> |
969 | /// <param name="agentData"></param> | 969 | /// <param name="agentData"></param> |
@@ -1058,7 +1058,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1058 | } | 1058 | } |
1059 | 1059 | ||
1060 | /// <summary> | 1060 | /// <summary> |
1061 | /// | 1061 | /// |
1062 | /// </summary> | 1062 | /// </summary> |
1063 | /// <param name="regionHandle"></param> | 1063 | /// <param name="regionHandle"></param> |
1064 | /// <param name="agentID"></param> | 1064 | /// <param name="agentID"></param> |
@@ -1098,20 +1098,20 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1098 | 1098 | ||
1099 | return retValue; | 1099 | return retValue; |
1100 | } | 1100 | } |
1101 | //TODO need to see if we know about where this region is and use .net remoting | 1101 | //TODO need to see if we know about where this region is and use .net remoting |
1102 | // to inform it. | 1102 | // to inform it. |
1103 | NoteDeadRegion(regionHandle); | 1103 | NoteDeadRegion(regionHandle); |
1104 | return false; | 1104 | return false; |
1105 | } | 1105 | } |
1106 | catch (RemotingException e) | 1106 | catch (RemotingException e) |
1107 | { | 1107 | { |
1108 | NoteDeadRegion(regionHandle); | 1108 | NoteDeadRegion(regionHandle); |
1109 | 1109 | ||
1110 | m_log.WarnFormat( | 1110 | m_log.WarnFormat( |
1111 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", | 1111 | "[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}", |
1112 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); | 1112 | regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY); |
1113 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 1113 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
1114 | 1114 | ||
1115 | return false; | 1115 | return false; |
1116 | } | 1116 | } |
1117 | catch | 1117 | catch |
@@ -1155,8 +1155,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1155 | 1155 | ||
1156 | return retValue; | 1156 | return retValue; |
1157 | } | 1157 | } |
1158 | //TODO need to see if we know about where this region is and use .net remoting | 1158 | //TODO need to see if we know about where this region is and use .net remoting |
1159 | // to inform it. | 1159 | // to inform it. |
1160 | NoteDeadRegion(regionHandle); | 1160 | NoteDeadRegion(regionHandle); |
1161 | return false; | 1161 | return false; |
1162 | } | 1162 | } |
@@ -1184,7 +1184,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1184 | catch (AuthenticationException e) | 1184 | catch (AuthenticationException e) |
1185 | { | 1185 | { |
1186 | NoteDeadRegion(regionHandle); | 1186 | NoteDeadRegion(regionHandle); |
1187 | m_log.Warn("[OGS1 GRID SERVICES]: Authentication exception: Unable to connect to adjacent region: " + regionHandle); | 1187 | m_log.Warn("[OGS1 GRID SERVICES]: Authentication exception: Unable to connect to adjacent region: " + regionHandle); |
1188 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); | 1188 | m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message); |
1189 | return false; | 1189 | return false; |
1190 | } | 1190 | } |
@@ -1230,8 +1230,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1230 | 1230 | ||
1231 | return true; | 1231 | return true; |
1232 | } | 1232 | } |
1233 | //TODO need to see if we know about where this region is and use .net remoting | 1233 | //TODO need to see if we know about where this region is and use .net remoting |
1234 | // to inform it. | 1234 | // to inform it. |
1235 | NoteDeadRegion(regionHandle); | 1235 | NoteDeadRegion(regionHandle); |
1236 | return false; | 1236 | return false; |
1237 | } | 1237 | } |
@@ -1311,7 +1311,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1311 | #region Methods triggered by calls from external instances | 1311 | #region Methods triggered by calls from external instances |
1312 | 1312 | ||
1313 | /// <summary> | 1313 | /// <summary> |
1314 | /// | 1314 | /// |
1315 | /// </summary> | 1315 | /// </summary> |
1316 | /// <param name="regionHandle"></param> | 1316 | /// <param name="regionHandle"></param> |
1317 | /// <param name="agentData"></param> | 1317 | /// <param name="agentData"></param> |
@@ -1342,7 +1342,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1342 | nRegionInfo.RegionLocX = regionData.X; | 1342 | nRegionInfo.RegionLocX = regionData.X; |
1343 | nRegionInfo.RegionLocY = regionData.Y; | 1343 | nRegionInfo.RegionLocY = regionData.Y; |
1344 | 1344 | ||
1345 | 1345 | ||
1346 | try | 1346 | try |
1347 | { | 1347 | { |
1348 | lock (m_deadRegionCache) | 1348 | lock (m_deadRegionCache) |
@@ -1379,14 +1379,14 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1379 | } | 1379 | } |
1380 | 1380 | ||
1381 | /// <summary> | 1381 | /// <summary> |
1382 | /// | 1382 | /// |
1383 | /// </summary> | 1383 | /// </summary> |
1384 | /// <param name="regionHandle"></param> | 1384 | /// <param name="regionHandle"></param> |
1385 | /// <param name="agentData"></param> | 1385 | /// <param name="agentData"></param> |
1386 | /// <returns></returns> | 1386 | /// <returns></returns> |
1387 | public bool IncomingPrim(ulong regionHandle, LLUUID primID, string objData, int XMLMethod) | 1387 | public bool IncomingPrim(ulong regionHandle, LLUUID primID, string objData, int XMLMethod) |
1388 | { | 1388 | { |
1389 | // Is this necessary? | 1389 | // Is this necessary? |
1390 | try | 1390 | try |
1391 | { | 1391 | { |
1392 | m_localBackend.TriggerExpectPrim(regionHandle, primID, objData, XMLMethod); | 1392 | m_localBackend.TriggerExpectPrim(regionHandle, primID, objData, XMLMethod); |
@@ -1401,7 +1401,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1401 | } | 1401 | } |
1402 | 1402 | ||
1403 | /// <summary> | 1403 | /// <summary> |
1404 | /// | 1404 | /// |
1405 | /// </summary> | 1405 | /// </summary> |
1406 | /// <param name="regionHandle"></param> | 1406 | /// <param name="regionHandle"></param> |
1407 | /// <param name="agentID"></param> | 1407 | /// <param name="agentID"></param> |