aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMW2008-02-27 22:47:33 +0000
committerMW2008-02-27 22:47:33 +0000
commit70ad5604cddd24b896e843255325240116a4dc22 (patch)
treeee3c62ed4d293f15e1422e5162ee0dfa47e46ec6 /OpenSim/Framework
parentsmall fix in the showstate data in AssetCache to reflect that now some functi... (diff)
downloadopensim-SC_OLD-70ad5604cddd24b896e843255325240116a4dc22.zip
opensim-SC_OLD-70ad5604cddd24b896e843255325240116a4dc22.tar.gz
opensim-SC_OLD-70ad5604cddd24b896e843255325240116a4dc22.tar.bz2
opensim-SC_OLD-70ad5604cddd24b896e843255325240116a4dc22.tar.xz
disabled AssetDownloadModule and re-enabled the asset download code in the asset cache, until it can be seen if the module was the cause of some new problems that seem like they might be related to assets. I'll look into this more tomorrow.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetCache.cs35
1 files changed, 18 insertions, 17 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs
index 29c7059..35a0088 100644
--- a/OpenSim/Framework/Communications/Cache/AssetCache.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs
@@ -69,12 +69,12 @@ namespace OpenSim.Framework.Communications.Cache
69 /// 69 ///
70 /// Assets requests which are waiting for asset server data. This includes texture requests 70 /// Assets requests which are waiting for asset server data. This includes texture requests
71 /// </summary> 71 /// </summary>
72 // private Dictionary<LLUUID, AssetRequest> RequestedAssets; 72 private Dictionary<LLUUID, AssetRequest> RequestedAssets;
73 73
74 /// <summary> 74 /// <summary>
75 /// Asset requests with data which are ready to be sent back to requesters. This includes textures. 75 /// Asset requests with data which are ready to be sent back to requesters. This includes textures.
76 /// </summary> 76 /// </summary>
77 // private List<AssetRequest> AssetRequests; 77 private List<AssetRequest> AssetRequests;
78 78
79 79
80 /// <summary> 80 /// <summary>
@@ -84,7 +84,7 @@ namespace OpenSim.Framework.Communications.Cache
84 84
85 private readonly IAssetServer m_assetServer; 85 private readonly IAssetServer m_assetServer;
86 86
87 // private readonly Thread m_assetCacheThread; 87 private readonly Thread m_assetCacheThread;
88 88
89 /// <summary> 89 /// <summary>
90 /// Report statistical data. 90 /// Report statistical data.
@@ -94,7 +94,7 @@ namespace OpenSim.Framework.Communications.Cache
94 m_log.InfoFormat("Assets:{0} Textures:{1} RequestLists:{2}", 94 m_log.InfoFormat("Assets:{0} Textures:{1} RequestLists:{2}",
95 Assets.Count, 95 Assets.Count,
96 Textures.Count, 96 Textures.Count,
97 // AssetRequests.Count, 97 // AssetRequests.Count,
98 // RequestedAssets.Count, 98 // RequestedAssets.Count,
99 RequestLists.Count); 99 RequestLists.Count);
100 100
@@ -150,9 +150,9 @@ namespace OpenSim.Framework.Communications.Cache
150 { 150 {
151 Assets = new Dictionary<LLUUID, AssetInfo>(); 151 Assets = new Dictionary<LLUUID, AssetInfo>();
152 Textures = new Dictionary<LLUUID, TextureImage>(); 152 Textures = new Dictionary<LLUUID, TextureImage>();
153 // AssetRequests = new List<AssetRequest>(); 153 AssetRequests = new List<AssetRequest>();
154 154
155 // RequestedAssets = new Dictionary<LLUUID, AssetRequest>(); 155 RequestedAssets = new Dictionary<LLUUID, AssetRequest>();
156 RequestLists = new Dictionary<LLUUID, AssetRequestsList>(); 156 RequestLists = new Dictionary<LLUUID, AssetRequestsList>();
157 } 157 }
158 158
@@ -168,18 +168,18 @@ namespace OpenSim.Framework.Communications.Cache
168 m_assetServer = assetServer; 168 m_assetServer = assetServer;
169 m_assetServer.SetReceiver(this); 169 m_assetServer.SetReceiver(this);
170 170
171 // m_assetCacheThread = new Thread(new ThreadStart(RunAssetManager)); 171 m_assetCacheThread = new Thread(new ThreadStart(RunAssetManager));
172 // m_assetCacheThread.Name = "AssetCacheThread"; 172 m_assetCacheThread.Name = "AssetCacheThread";
173 // m_assetCacheThread.IsBackground = true; 173 m_assetCacheThread.IsBackground = true;
174 // m_assetCacheThread.Start(); 174 m_assetCacheThread.Start();
175 // OpenSim.Framework.ThreadTracker.Add(m_assetCacheThread); 175 OpenSim.Framework.ThreadTracker.Add(m_assetCacheThread);
176 } 176 }
177 177
178 /// <summary> 178 /// <summary>
179 /// Process the asset queue which holds data which is packeted up and sent 179 /// Process the asset queue which holds data which is packeted up and sent
180 /// directly back to the client. 180 /// directly back to the client.
181 /// </summary> 181 /// </summary>
182 /* public void RunAssetManager() 182 public void RunAssetManager()
183 { 183 {
184 while (true) 184 while (true)
185 { 185 {
@@ -193,7 +193,7 @@ namespace OpenSim.Framework.Communications.Cache
193 m_log.Error("[ASSET CACHE]: " + e.ToString()); 193 m_log.Error("[ASSET CACHE]: " + e.ToString());
194 } 194 }
195 } 195 }
196 }*/ 196 }
197 197
198 /// <summary> 198 /// <summary>
199 /// Only get an asset if we already have it in the cache. 199 /// Only get an asset if we already have it in the cache.
@@ -449,7 +449,7 @@ namespace OpenSim.Framework.Communications.Cache
449 StatsManager.SimExtraStats.AddAsset(assetInf); 449 StatsManager.SimExtraStats.AddAsset(assetInf);
450 } 450 }
451 451
452 /* if (RequestedAssets.ContainsKey(assetInf.FullID)) 452 if (RequestedAssets.ContainsKey(assetInf.FullID))
453 { 453 {
454 #if DEBUG 454 #if DEBUG
455 //m_log.DebugFormat("[ASSET CACHE]: Moving {0} from RequestedAssets to AssetRequests", asset.FullID); 455 //m_log.DebugFormat("[ASSET CACHE]: Moving {0} from RequestedAssets to AssetRequests", asset.FullID);
@@ -461,7 +461,7 @@ namespace OpenSim.Framework.Communications.Cache
461 461
462 RequestedAssets.Remove(assetInf.FullID); 462 RequestedAssets.Remove(assetInf.FullID);
463 AssetRequests.Add(req); 463 AssetRequests.Add(req);
464 }*/ 464 }
465 } 465 }
466 } 466 }
467 467
@@ -485,6 +485,7 @@ namespace OpenSim.Framework.Communications.Cache
485 //texturedownloadmodule , and hitting a lock in there. While the texturedownload thread (which was holding 485 //texturedownloadmodule , and hitting a lock in there. While the texturedownload thread (which was holding
486 // the lock in the texturedownload module) was trying to 486 // the lock in the texturedownload module) was trying to
487 //request a new asset and hitting a lock in here on the RequestLists. 487 //request a new asset and hitting a lock in here on the RequestLists.
488
488 List<NewAssetRequest> theseRequests = new List<NewAssetRequest>(reqList.Requests); 489 List<NewAssetRequest> theseRequests = new List<NewAssetRequest>(reqList.Requests);
489 reqList.Requests.Clear(); 490 reqList.Requests.Clear();
490 491
@@ -541,7 +542,7 @@ namespace OpenSim.Framework.Communications.Cache
541 542
542 } 543 }
543 544
544 /* 545
545 /// <summary> 546 /// <summary>
546 /// Calculate the number of packets required to send the asset to the client. 547 /// Calculate the number of packets required to send the asset to the client.
547 /// </summary> 548 /// </summary>
@@ -735,7 +736,7 @@ namespace OpenSim.Framework.Communications.Cache
735 { 736 {
736 } 737 }
737 } 738 }
738 */ 739
739 740
740 public class AssetInfo : AssetBase 741 public class AssetInfo : AssetBase
741 { 742 {