aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs4
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs2
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs98
3 files changed, 55 insertions, 49 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index bfdb24f..9d6085d 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -4201,6 +4201,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4201 } 4201 }
4202 } 4202 }
4203 4203
4204// m_log.DebugFormat(
4205// "[LLCLIENTVIEW]: Sent {0} updates in ProcessEntityUpdates() for {1} {2} in {3}",
4206// updatesThisCall, Name, SceneAgent.IsChildAgent ? "child" : "root", Scene.Name);
4207//
4204 #endregion Packet Sending 4208 #endregion Packet Sending
4205 } 4209 }
4206 4210
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index 39c9cb1..2f363f4 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -672,6 +672,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
672 /// signature</param> 672 /// signature</param>
673 private void FireQueueEmpty(object o) 673 private void FireQueueEmpty(object o)
674 { 674 {
675// m_log.DebugFormat("[LLUDPCLIENT]: FireQueueEmpty for {0} in {1}", AgentID, m_udpServer.Scene.Name);
676
675// int start = Environment.TickCount & Int32.MaxValue; 677// int start = Environment.TickCount & Int32.MaxValue;
676// const int MIN_CALLBACK_MS = 30; 678// const int MIN_CALLBACK_MS = 30;
677 679
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 708a0a1..465c86b 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -250,7 +250,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
250 private AgentCircuitManager m_circuitManager; 250 private AgentCircuitManager m_circuitManager;
251 251
252 /// <summary>Reference to the scene this UDP server is attached to</summary> 252 /// <summary>Reference to the scene this UDP server is attached to</summary>
253 protected Scene m_scene; 253 public Scene Scene { get; private set; }
254 254
255 /// <summary>The X/Y coordinates of the scene this UDP server is attached to</summary> 255 /// <summary>The X/Y coordinates of the scene this UDP server is attached to</summary>
256 private Location m_location; 256 private Location m_location;
@@ -453,7 +453,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
453 // This thread will process the packets received that are placed on the packetInbox 453 // This thread will process the packets received that are placed on the packetInbox
454 Watchdog.StartThread( 454 Watchdog.StartThread(
455 IncomingPacketHandler, 455 IncomingPacketHandler,
456 string.Format("Incoming Packets ({0})", m_scene.RegionInfo.RegionName), 456 string.Format("Incoming Packets ({0})", Scene.Name),
457 ThreadPriority.Normal, 457 ThreadPriority.Normal,
458 false, 458 false,
459 true, 459 true,
@@ -469,7 +469,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
469 469
470 Watchdog.StartThread( 470 Watchdog.StartThread(
471 OutgoingPacketHandler, 471 OutgoingPacketHandler,
472 string.Format("Outgoing Packets ({0})", m_scene.RegionInfo.RegionName), 472 string.Format("Outgoing Packets ({0})", Scene.RegionInfo.RegionName),
473 ThreadPriority.Normal, 473 ThreadPriority.Normal,
474 false, 474 false,
475 true, 475 true,
@@ -479,7 +479,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
479 479
480 public void Stop() 480 public void Stop()
481 { 481 {
482 m_log.Info("[LLUDPSERVER]: Shutting down the LLUDP server for " + m_scene.RegionInfo.RegionName); 482 m_log.Info("[LLUDPSERVER]: Shutting down the LLUDP server for " + Scene.RegionInfo.RegionName);
483 base.StopOutbound(); 483 base.StopOutbound();
484 base.StopInbound(); 484 base.StopInbound();
485 } 485 }
@@ -527,7 +527,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
527 "The number of objects currently stored within the UDPPacketBuffer pool", 527 "The number of objects currently stored within the UDPPacketBuffer pool",
528 "", 528 "",
529 "clientstack", 529 "clientstack",
530 m_scene.Name, 530 Scene.Name,
531 StatType.Pull, 531 StatType.Pull,
532 stat => stat.Value = Pool.Count, 532 stat => stat.Value = Pool.Count,
533 StatVerbosity.Debug); 533 StatVerbosity.Debug);
@@ -541,7 +541,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
541 "The number of objects currently stored within the incoming packet pool", 541 "The number of objects currently stored within the incoming packet pool",
542 "", 542 "",
543 "clientstack", 543 "clientstack",
544 m_scene.Name, 544 Scene.Name,
545 StatType.Pull, 545 StatType.Pull,
546 stat => stat.Value = m_incomingPacketPool.Count, 546 stat => stat.Value = m_incomingPacketPool.Count,
547 StatVerbosity.Debug); 547 StatVerbosity.Debug);
@@ -585,7 +585,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
585 585
586 public void AddScene(IScene scene) 586 public void AddScene(IScene scene)
587 { 587 {
588 if (m_scene != null) 588 if (Scene != null)
589 { 589 {
590 m_log.Error("[LLUDPSERVER]: AddScene() called on an LLUDPServer that already has a scene"); 590 m_log.Error("[LLUDPSERVER]: AddScene() called on an LLUDPServer that already has a scene");
591 return; 591 return;
@@ -597,8 +597,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
597 return; 597 return;
598 } 598 }
599 599
600 m_scene = (Scene)scene; 600 Scene = (Scene)scene;
601 m_location = new Location(m_scene.RegionInfo.RegionHandle); 601 m_location = new Location(Scene.RegionInfo.RegionHandle);
602 602
603 StatsManager.RegisterStat( 603 StatsManager.RegisterStat(
604 new Stat( 604 new Stat(
@@ -621,7 +621,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
621 "Packets reused", 621 "Packets reused",
622 "Number of packets reused out of all requests to the packet pool", 622 "Number of packets reused out of all requests to the packet pool",
623 "clientstack", 623 "clientstack",
624 m_scene.Name, 624 Scene.Name,
625 StatType.Pull, 625 StatType.Pull,
626 stat => 626 stat =>
627 { PercentageStat pstat = (PercentageStat)stat; 627 { PercentageStat pstat = (PercentageStat)stat;
@@ -635,7 +635,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
635 "Packet data blocks reused", 635 "Packet data blocks reused",
636 "Number of data blocks reused out of all requests to the packet pool", 636 "Number of data blocks reused out of all requests to the packet pool",
637 "clientstack", 637 "clientstack",
638 m_scene.Name, 638 Scene.Name,
639 StatType.Pull, 639 StatType.Pull,
640 stat => 640 stat =>
641 { PercentageStat pstat = (PercentageStat)stat; 641 { PercentageStat pstat = (PercentageStat)stat;
@@ -650,7 +650,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
650 "The number of objects currently stored within the packet pool", 650 "The number of objects currently stored within the packet pool",
651 "", 651 "",
652 "clientstack", 652 "clientstack",
653 m_scene.Name, 653 Scene.Name,
654 StatType.Pull, 654 StatType.Pull,
655 stat => stat.Value = PacketPool.Instance.PacketsPooled, 655 stat => stat.Value = PacketPool.Instance.PacketsPooled,
656 StatVerbosity.Debug)); 656 StatVerbosity.Debug));
@@ -662,7 +662,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
662 "The number of objects currently stored within the packet data block pool", 662 "The number of objects currently stored within the packet data block pool",
663 "", 663 "",
664 "clientstack", 664 "clientstack",
665 m_scene.Name, 665 Scene.Name,
666 StatType.Pull, 666 StatType.Pull,
667 stat => stat.Value = PacketPool.Instance.BlocksPooled, 667 stat => stat.Value = PacketPool.Instance.BlocksPooled,
668 StatVerbosity.Debug)); 668 StatVerbosity.Debug));
@@ -739,7 +739,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
739 739
740 private void HandlePacketCommand(string module, string[] args) 740 private void HandlePacketCommand(string module, string[] args)
741 { 741 {
742 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_scene) 742 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != Scene)
743 return; 743 return;
744 744
745 bool setAsDefaultLevel = false; 745 bool setAsDefaultLevel = false;
@@ -775,15 +775,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
775 775
776 MainConsole.Instance.OutputFormat( 776 MainConsole.Instance.OutputFormat(
777 "Packet debug for {0} clients set to {1} in {2}", 777 "Packet debug for {0} clients set to {1} in {2}",
778 (setAll ? "all" : "future"), DefaultClientPacketDebugLevel, m_scene.Name); 778 (setAll ? "all" : "future"), DefaultClientPacketDebugLevel, Scene.Name);
779 779
780 if (setAll) 780 if (setAll)
781 { 781 {
782 m_scene.ForEachScenePresence(sp => 782 Scene.ForEachScenePresence(sp =>
783 { 783 {
784 MainConsole.Instance.OutputFormat( 784 MainConsole.Instance.OutputFormat(
785 "Packet debug for {0} ({1}) set to {2} in {3}", 785 "Packet debug for {0} ({1}) set to {2} in {3}",
786 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_scene.Name); 786 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, Scene.Name);
787 787
788 sp.ControllingClient.DebugPacketLevel = newDebug; 788 sp.ControllingClient.DebugPacketLevel = newDebug;
789 }); 789 });
@@ -791,13 +791,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
791 } 791 }
792 else 792 else
793 { 793 {
794 m_scene.ForEachScenePresence(sp => 794 Scene.ForEachScenePresence(sp =>
795 { 795 {
796 if (name == null || sp.Name == name) 796 if (name == null || sp.Name == name)
797 { 797 {
798 MainConsole.Instance.OutputFormat( 798 MainConsole.Instance.OutputFormat(
799 "Packet debug for {0} ({1}) set to {2} in {3}", 799 "Packet debug for {0} ({1}) set to {2} in {3}",
800 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_scene.Name); 800 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, Scene.Name);
801 801
802 sp.ControllingClient.DebugPacketLevel = newDebug; 802 sp.ControllingClient.DebugPacketLevel = newDebug;
803 } 803 }
@@ -813,7 +813,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
813 813
814 private void HandleStartCommand(string module, string[] args) 814 private void HandleStartCommand(string module, string[] args)
815 { 815 {
816 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_scene) 816 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != Scene)
817 return; 817 return;
818 818
819 if (args.Length != 4) 819 if (args.Length != 4)
@@ -833,7 +833,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
833 833
834 private void HandleStopCommand(string module, string[] args) 834 private void HandleStopCommand(string module, string[] args)
835 { 835 {
836 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_scene) 836 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != Scene)
837 return; 837 return;
838 838
839 if (args.Length != 4) 839 if (args.Length != 4)
@@ -853,7 +853,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
853 853
854 private void HandlePoolCommand(string module, string[] args) 854 private void HandlePoolCommand(string module, string[] args)
855 { 855 {
856 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_scene) 856 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != Scene)
857 return; 857 return;
858 858
859 if (args.Length != 4) 859 if (args.Length != 4)
@@ -869,7 +869,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
869 if (EnablePools()) 869 if (EnablePools())
870 { 870 {
871 EnablePoolStats(); 871 EnablePoolStats();
872 MainConsole.Instance.OutputFormat("Packet pools enabled on {0}", m_scene.Name); 872 MainConsole.Instance.OutputFormat("Packet pools enabled on {0}", Scene.Name);
873 } 873 }
874 } 874 }
875 else if (enabled == "off") 875 else if (enabled == "off")
@@ -877,7 +877,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
877 if (DisablePools()) 877 if (DisablePools())
878 { 878 {
879 DisablePoolStats(); 879 DisablePoolStats();
880 MainConsole.Instance.OutputFormat("Packet pools disabled on {0}", m_scene.Name); 880 MainConsole.Instance.OutputFormat("Packet pools disabled on {0}", Scene.Name);
881 } 881 }
882 } 882 }
883 else 883 else
@@ -890,27 +890,27 @@ namespace OpenSim.Region.ClientStack.LindenUDP
890 890
891 private void HandleAgentUpdateCommand(string module, string[] args) 891 private void HandleAgentUpdateCommand(string module, string[] args)
892 { 892 {
893 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_scene) 893 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != Scene)
894 return; 894 return;
895 895
896 m_discardAgentUpdates = !m_discardAgentUpdates; 896 m_discardAgentUpdates = !m_discardAgentUpdates;
897 897
898 MainConsole.Instance.OutputFormat( 898 MainConsole.Instance.OutputFormat(
899 "Discard AgentUpdates now {0} for {1}", m_discardAgentUpdates, m_scene.Name); 899 "Discard AgentUpdates now {0} for {1}", m_discardAgentUpdates, Scene.Name);
900 } 900 }
901 901
902 private void HandleStatusCommand(string module, string[] args) 902 private void HandleStatusCommand(string module, string[] args)
903 { 903 {
904 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_scene) 904 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != Scene)
905 return; 905 return;
906 906
907 MainConsole.Instance.OutputFormat( 907 MainConsole.Instance.OutputFormat(
908 "IN LLUDP packet processing for {0} is {1}", m_scene.Name, IsRunningInbound ? "enabled" : "disabled"); 908 "IN LLUDP packet processing for {0} is {1}", Scene.Name, IsRunningInbound ? "enabled" : "disabled");
909 909
910 MainConsole.Instance.OutputFormat( 910 MainConsole.Instance.OutputFormat(
911 "OUT LLUDP packet processing for {0} is {1}", m_scene.Name, IsRunningOutbound ? "enabled" : "disabled"); 911 "OUT LLUDP packet processing for {0} is {1}", Scene.Name, IsRunningOutbound ? "enabled" : "disabled");
912 912
913 MainConsole.Instance.OutputFormat("LLUDP pools in {0} are {1}", m_scene.Name, UsePools ? "on" : "off"); 913 MainConsole.Instance.OutputFormat("LLUDP pools in {0} are {1}", Scene.Name, UsePools ? "on" : "off");
914 914
915 MainConsole.Instance.OutputFormat( 915 MainConsole.Instance.OutputFormat(
916 "Packet debug level for new clients is {0}", DefaultClientPacketDebugLevel); 916 "Packet debug level for new clients is {0}", DefaultClientPacketDebugLevel);
@@ -1420,7 +1420,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1420 1420
1421 // Determine which agent this packet came from 1421 // Determine which agent this packet came from
1422 IClientAPI client; 1422 IClientAPI client;
1423 if (!m_scene.TryGetClient(endPoint, out client) || !(client is LLClientView)) 1423 if (!Scene.TryGetClient(endPoint, out client) || !(client is LLClientView))
1424 { 1424 {
1425 //m_log.Debug("[LLUDPSERVER]: Received a " + packet.Type + " packet from an unrecognized source: " + address + " in " + m_scene.RegionInfo.RegionName); 1425 //m_log.Debug("[LLUDPSERVER]: Received a " + packet.Type + " packet from an unrecognized source: " + address + " in " + m_scene.RegionInfo.RegionName);
1426 1426
@@ -1715,7 +1715,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1715 1715
1716 m_log.DebugFormat( 1716 m_log.DebugFormat(
1717 "[LLUDPSERVER]: Handling UseCircuitCode request for circuit {0} to {1} from IP {2}", 1717 "[LLUDPSERVER]: Handling UseCircuitCode request for circuit {0} to {1} from IP {2}",
1718 uccp.CircuitCode.Code, m_scene.RegionInfo.RegionName, endPoint); 1718 uccp.CircuitCode.Code, Scene.RegionInfo.RegionName, endPoint);
1719 1719
1720 AuthenticateResponse sessionInfo; 1720 AuthenticateResponse sessionInfo;
1721 if (IsClientAuthorized(uccp, out sessionInfo)) 1721 if (IsClientAuthorized(uccp, out sessionInfo))
@@ -1737,7 +1737,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1737 // We only want to send initial data to new clients, not ones which are being converted from child to root. 1737 // We only want to send initial data to new clients, not ones which are being converted from child to root.
1738 if (client != null) 1738 if (client != null)
1739 { 1739 {
1740 AgentCircuitData aCircuit = m_scene.AuthenticateHandler.GetAgentCircuitData(uccp.CircuitCode.Code); 1740 AgentCircuitData aCircuit = Scene.AuthenticateHandler.GetAgentCircuitData(uccp.CircuitCode.Code);
1741 bool tp = (aCircuit.teleportFlags > 0); 1741 bool tp = (aCircuit.teleportFlags > 0);
1742 // Let's delay this for TP agents, otherwise the viewer doesn't know where to get resources from 1742 // Let's delay this for TP agents, otherwise the viewer doesn't know where to get resources from
1743 if (!tp && !client.SceneAgent.SentInitialDataToClient) 1743 if (!tp && !client.SceneAgent.SentInitialDataToClient)
@@ -1749,7 +1749,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1749 // Don't create clients for unauthorized requesters. 1749 // Don't create clients for unauthorized requesters.
1750 m_log.WarnFormat( 1750 m_log.WarnFormat(
1751 "[LLUDPSERVER]: Ignoring connection request for {0} to {1} with unknown circuit code {2} from IP {3}", 1751 "[LLUDPSERVER]: Ignoring connection request for {0} to {1} with unknown circuit code {2} from IP {3}",
1752 uccp.CircuitCode.ID, m_scene.RegionInfo.RegionName, uccp.CircuitCode.Code, endPoint); 1752 uccp.CircuitCode.ID, Scene.RegionInfo.RegionName, uccp.CircuitCode.Code, endPoint);
1753 } 1753 }
1754 1754
1755 // m_log.DebugFormat( 1755 // m_log.DebugFormat(
@@ -1781,7 +1781,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1781 CompleteAgentMovementPacket packet = (CompleteAgentMovementPacket)array[1]; 1781 CompleteAgentMovementPacket packet = (CompleteAgentMovementPacket)array[1];
1782 1782
1783 m_log.DebugFormat( 1783 m_log.DebugFormat(
1784 "[LLUDPSERVER]: Handling CompleteAgentMovement request from {0} in {1}", endPoint, m_scene.Name); 1784 "[LLUDPSERVER]: Handling CompleteAgentMovement request from {0} in {1}", endPoint, Scene.Name);
1785 1785
1786 // Determine which agent this packet came from 1786 // Determine which agent this packet came from
1787 // We need to wait here because in when using the OpenSimulator V2 teleport protocol to travel to a destination 1787 // We need to wait here because in when using the OpenSimulator V2 teleport protocol to travel to a destination
@@ -1792,7 +1792,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1792 int count = 40; 1792 int count = 40;
1793 while (count-- > 0) 1793 while (count-- > 0)
1794 { 1794 {
1795 if (m_scene.TryGetClient(endPoint, out client)) 1795 if (Scene.TryGetClient(endPoint, out client))
1796 { 1796 {
1797 if (!client.IsActive) 1797 if (!client.IsActive)
1798 { 1798 {
@@ -1801,7 +1801,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1801 // not yet been established). 1801 // not yet been established).
1802 m_log.DebugFormat( 1802 m_log.DebugFormat(
1803 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} for {1} in {2} but client is not active yet. Waiting.", 1803 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} for {1} in {2} but client is not active yet. Waiting.",
1804 endPoint, client.Name, m_scene.Name); 1804 endPoint, client.Name, Scene.Name);
1805 } 1805 }
1806 else if (client.SceneAgent == null) 1806 else if (client.SceneAgent == null)
1807 { 1807 {
@@ -1813,7 +1813,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1813 // the client manager 1813 // the client manager
1814 m_log.DebugFormat( 1814 m_log.DebugFormat(
1815 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} for {1} in {2} but client SceneAgent not set yet. Waiting.", 1815 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} for {1} in {2} but client SceneAgent not set yet. Waiting.",
1816 endPoint, client.Name, m_scene.Name); 1816 endPoint, client.Name, Scene.Name);
1817 } 1817 }
1818 else 1818 else
1819 { 1819 {
@@ -1824,7 +1824,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1824 { 1824 {
1825 m_log.DebugFormat( 1825 m_log.DebugFormat(
1826 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} in {1} but no client exists yet. Waiting.", 1826 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} in {1} but no client exists yet. Waiting.",
1827 endPoint, m_scene.Name); 1827 endPoint, Scene.Name);
1828 } 1828 }
1829 1829
1830 Thread.Sleep(200); 1830 Thread.Sleep(200);
@@ -1834,7 +1834,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1834 { 1834 {
1835 m_log.DebugFormat( 1835 m_log.DebugFormat(
1836 "[LLUDPSERVER]: No client found for CompleteAgentMovement from {0} in {1} after wait. Dropping.", 1836 "[LLUDPSERVER]: No client found for CompleteAgentMovement from {0} in {1} after wait. Dropping.",
1837 endPoint, m_scene.Name); 1837 endPoint, Scene.Name);
1838 1838
1839 return; 1839 return;
1840 } 1840 }
@@ -1846,7 +1846,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1846 // purposes. 1846 // purposes.
1847 m_log.DebugFormat( 1847 m_log.DebugFormat(
1848 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} for {1} in {2} but client is not active after wait. Dropping.", 1848 "[LLUDPSERVER]: Received a CompleteAgentMovement from {0} for {1} in {2} but client is not active after wait. Dropping.",
1849 endPoint, client.Name, m_scene.Name); 1849 endPoint, client.Name, Scene.Name);
1850 1850
1851 return; 1851 return;
1852 } 1852 }
@@ -1941,11 +1941,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1941 // consistently, this lock could probably be removed. 1941 // consistently, this lock could probably be removed.
1942 lock (this) 1942 lock (this)
1943 { 1943 {
1944 if (!m_scene.TryGetClient(agentID, out client)) 1944 if (!Scene.TryGetClient(agentID, out client))
1945 { 1945 {
1946 LLUDPClient udpClient = new LLUDPClient(this, ThrottleRates, m_throttle, circuitCode, agentID, remoteEndPoint, m_defaultRTO, m_maxRTO); 1946 LLUDPClient udpClient = new LLUDPClient(this, ThrottleRates, m_throttle, circuitCode, agentID, remoteEndPoint, m_defaultRTO, m_maxRTO);
1947 1947
1948 client = new LLClientView(m_scene, this, udpClient, sessionInfo, agentID, sessionID, circuitCode); 1948 client = new LLClientView(Scene, this, udpClient, sessionInfo, agentID, sessionID, circuitCode);
1949 client.OnLogout += LogoutHandler; 1949 client.OnLogout += LogoutHandler;
1950 client.DebugPacketLevel = DefaultClientPacketDebugLevel; 1950 client.DebugPacketLevel = DefaultClientPacketDebugLevel;
1951 1951
@@ -1975,13 +1975,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1975 1975
1976 m_log.WarnFormat( 1976 m_log.WarnFormat(
1977 "[LLUDPSERVER]: No packets received from {0} agent of {1} for {2}ms in {3}. Disconnecting.", 1977 "[LLUDPSERVER]: No packets received from {0} agent of {1} for {2}ms in {3}. Disconnecting.",
1978 client.SceneAgent.IsChildAgent ? "child" : "root", client.Name, timeoutTicks, m_scene.Name); 1978 client.SceneAgent.IsChildAgent ? "child" : "root", client.Name, timeoutTicks, Scene.Name);
1979 1979
1980 if (!client.SceneAgent.IsChildAgent) 1980 if (!client.SceneAgent.IsChildAgent)
1981 client.Kick("Simulator logged you out due to connection timeout."); 1981 client.Kick("Simulator logged you out due to connection timeout.");
1982 } 1982 }
1983 1983
1984 m_scene.CloseAgent(client.AgentId, true); 1984 Scene.CloseAgent(client.AgentId, true);
1985 } 1985 }
1986 1986
1987 private void IncomingPacketHandler() 1987 private void IncomingPacketHandler()
@@ -2093,7 +2093,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2093 2093
2094 // Handle outgoing packets, resends, acknowledgements, and pings for each 2094 // Handle outgoing packets, resends, acknowledgements, and pings for each
2095 // client. m_packetSent will be set to true if a packet is sent 2095 // client. m_packetSent will be set to true if a packet is sent
2096 m_scene.ForEachClient(clientPacketHandler); 2096 Scene.ForEachClient(clientPacketHandler);
2097 2097
2098 m_currentOutgoingClient = null; 2098 m_currentOutgoingClient = null;
2099 2099
@@ -2260,7 +2260,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2260 watch1.Reset(); 2260 watch1.Reset();
2261 2261
2262 // reuse this -- it's every ~100ms 2262 // reuse this -- it's every ~100ms
2263 if (m_scene.EmergencyMonitoring && nticks % 100 == 0) 2263 if (Scene.EmergencyMonitoring && nticks % 100 == 0)
2264 { 2264 {
2265 m_log.InfoFormat("[LLUDPSERVER]: avg processing ticks: {0} avg unacked: {1} avg acks: {2} avg ping: {3} avg dequeue: {4} (TickCountRes: {5} sent: {6} notsent: {7})", 2265 m_log.InfoFormat("[LLUDPSERVER]: avg processing ticks: {0} avg unacked: {1} avg acks: {2} avg ping: {3} avg dequeue: {4} (TickCountRes: {5} sent: {6} notsent: {7})",
2266 avgProcessingTicks, avgResendUnackedTicks, avgSendAcksTicks, avgSendPingTicks, avgDequeueTicks, TickCountResolution, npacksSent, npackNotSent); 2266 avgProcessingTicks, avgResendUnackedTicks, avgSendAcksTicks, avgSendPingTicks, avgDequeueTicks, TickCountResolution, npacksSent, npackNotSent);
@@ -2309,7 +2309,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2309 { 2309 {
2310 m_log.DebugFormat( 2310 m_log.DebugFormat(
2311 "[LLUDPSERVER]: Dropped incoming {0} for dead client {1} in {2}", 2311 "[LLUDPSERVER]: Dropped incoming {0} for dead client {1} in {2}",
2312 packet.Type, client.Name, m_scene.RegionInfo.RegionName); 2312 packet.Type, client.Name, Scene.RegionInfo.RegionName);
2313 } 2313 }
2314 2314
2315 IncomingPacketsProcessed++; 2315 IncomingPacketsProcessed++;
@@ -2322,7 +2322,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2322 if (!client.IsLoggingOut) 2322 if (!client.IsLoggingOut)
2323 { 2323 {
2324 client.IsLoggingOut = true; 2324 client.IsLoggingOut = true;
2325 m_scene.CloseAgent(client.AgentId, false); 2325 Scene.CloseAgent(client.AgentId, false);
2326 } 2326 }
2327 } 2327 }
2328 } 2328 }