aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-06 20:34:18 +0000
committerJustin Clarke Casey2008-02-06 20:34:18 +0000
commit548bbc97e5d6e2ffaa3068aa0847eaa6c401345d (patch)
tree193f5af76e8a680e6d4e566767033e2c6117bd44 /OpenSim/Region/ClientStack
parentpass 1 on getting colors back to the console (diff)
downloadopensim-SC-548bbc97e5d6e2ffaa3068aa0847eaa6c401345d.zip
opensim-SC-548bbc97e5d6e2ffaa3068aa0847eaa6c401345d.tar.gz
opensim-SC-548bbc97e5d6e2ffaa3068aa0847eaa6c401345d.tar.bz2
opensim-SC-548bbc97e5d6e2ffaa3068aa0847eaa6c401345d.tar.xz
* Chasing down memory leak where memory used by a client is not returned on client logout
* This code may or may not be on the right track, but I want to save my work so far.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs5
-rw-r--r--OpenSim/Region/ClientStack/PacketServer.cs8
2 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 10bf0d1..aeac1b2 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -51,6 +51,11 @@ namespace OpenSim.Region.ClientStack
51 /// </summary> 51 /// </summary>
52 public class ClientView : IClientAPI 52 public class ClientView : IClientAPI
53 { 53 {
54 ~ClientView()
55 {
56 m_log.Info("[CLIENTVIEW]: Dstructor called");
57 }
58
54 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 59 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
55 60
56 /* static variables */ 61 /* static variables */
diff --git a/OpenSim/Region/ClientStack/PacketServer.cs b/OpenSim/Region/ClientStack/PacketServer.cs
index 7e01adf..9608ce5 100644
--- a/OpenSim/Region/ClientStack/PacketServer.cs
+++ b/OpenSim/Region/ClientStack/PacketServer.cs
@@ -36,6 +36,9 @@ namespace OpenSim.Region.ClientStack
36{ 36{
37 public class PacketServer 37 public class PacketServer
38 { 38 {
39 private static readonly log4net.ILog m_log
40 = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
41
39 private ClientStackNetworkHandler m_networkHandler; 42 private ClientStackNetworkHandler m_networkHandler;
40 private IScene m_scene; 43 private IScene m_scene;
41 44
@@ -132,8 +135,11 @@ namespace OpenSim.Region.ClientStack
132 135
133 public virtual void CloseClient(IClientAPI client) 136 public virtual void CloseClient(IClientAPI client)
134 { 137 {
138 //m_log.Info("PacketServer:CloseClient()");
139
135 CloseCircuit(client.CircuitCode); 140 CloseCircuit(client.CircuitCode);
136 client.Close(false); 141 client.Close(false);
142 m_scene.ClientManager.Remove(client.CircuitCode);
137 } 143 }
138 } 144 }
139} \ No newline at end of file 145}