aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-08 22:39:08 +0000
committerJustin Clarke Casey2008-02-08 22:39:08 +0000
commitf05f583613850ef480d7be6a74220da0507e8b9b (patch)
tree480e50a550ea79e096b9c821eeacdef753afd5fa /OpenSim/Framework
parent* Finished Cylinder in the Meshmerizer. Hollow and Path cut work for it now. ... (diff)
downloadopensim-SC-f05f583613850ef480d7be6a74220da0507e8b9b.zip
opensim-SC-f05f583613850ef480d7be6a74220da0507e8b9b.tar.gz
opensim-SC-f05f583613850ef480d7be6a74220da0507e8b9b.tar.bz2
opensim-SC-f05f583613850ef480d7be6a74220da0507e8b9b.tar.xz
Still chasing logout memory leak. Putting in small changes and temporary light verbosity to this end
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/ClientManager.cs3
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetTransactions.cs17
2 files changed, 15 insertions, 5 deletions
diff --git a/OpenSim/Framework/ClientManager.cs b/OpenSim/Framework/ClientManager.cs
index 6843dce..064b82d 100644
--- a/OpenSim/Framework/ClientManager.cs
+++ b/OpenSim/Framework/ClientManager.cs
@@ -26,6 +26,7 @@
26* 26*
27*/ 27*/
28 28
29using System;
29using System.Collections.Generic; 30using System.Collections.Generic;
30using libsecondlife; 31using libsecondlife;
31using libsecondlife.Packets; 32using libsecondlife.Packets;
@@ -70,7 +71,9 @@ namespace OpenSim.Framework
70 71
71 public void Remove(uint id) 72 public void Remove(uint id)
72 { 73 {
74 //m_log.Info(String.Format("[CLIENT]: Removing client with code {0}, current count {1}", id, m_clients.Count));
73 m_clients.Remove(id); 75 m_clients.Remove(id);
76 m_log.Info(String.Format("[CLIENT]: Removed client with code {0}, new client count {1}", id, m_clients.Count));
74 } 77 }
75 78
76 public void Add(uint id, IClientAPI client) 79 public void Add(uint id, IClientAPI client)
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
index d09e343..4a75f52 100644
--- a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs
@@ -103,12 +103,22 @@ namespace OpenSim.Framework.Communications.Cache
103 } 103 }
104 } 104 }
105 105
106 /// <summary>
107 /// Get an uploaded asset. If the data is successfully retrieved, the transaction will be removed.
108 /// </summary>
109 /// <param name="transactionID"></param>
110 /// <returns>The asset if the upload has completed, null if it has not.</returns>
106 public AssetBase GetTransactionAsset(LLUUID transactionID) 111 public AssetBase GetTransactionAsset(LLUUID transactionID)
107 { 112 {
108 if (XferUploaders.ContainsKey(transactionID)) 113 if (XferUploaders.ContainsKey(transactionID))
109 { 114 {
110 return XferUploaders[transactionID].GetAssetData(); 115 AssetXferUploader uploader = XferUploaders[transactionID];
116 AssetBase asset = uploader.GetAssetData();
117 XferUploaders.Remove(transactionID);
118
119 return asset;
111 } 120 }
121
112 return null; 122 return null;
113 } 123 }
114 124
@@ -237,6 +247,7 @@ namespace OpenSim.Framework.Communications.Cache
237 SaveAssetToFile(filename, Asset.Data); 247 SaveAssetToFile(filename, Asset.Data);
238 } 248 }
239 } 249 }
250
240 ///Left this in and commented in case there are unforseen issues 251 ///Left this in and commented in case there are unforseen issues
241 //private void SaveAssetToFile(string filename, byte[] data) 252 //private void SaveAssetToFile(string filename, byte[] data)
242 //{ 253 //{
@@ -311,10 +322,6 @@ namespace OpenSim.Framework.Communications.Cache
311 } 322 }
312 } 323 }
313 324
314 public void UpdateInventoryItem(LLUUID itemID)
315 {
316 }
317
318 public AssetBase GetAssetData() 325 public AssetBase GetAssetData()
319 { 326 {
320 if (m_finished) 327 if (m_finished)