aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-19 23:09:16 +0000
committerJustin Clark-Casey (justincc)2012-01-19 23:09:16 +0000
commitea72428c9d3fa27ab43bb3e0b2e297bf3b22861e (patch)
tree618b9007b2f4d3b425d539a67a4dfe796a5362d6 /OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
parentAdd image not in database test for LLImageManager (diff)
downloadopensim-SC-ea72428c9d3fa27ab43bb3e0b2e297bf3b22861e.zip
opensim-SC-ea72428c9d3fa27ab43bb3e0b2e297bf3b22861e.tar.gz
opensim-SC-ea72428c9d3fa27ab43bb3e0b2e297bf3b22861e.tar.bz2
opensim-SC-ea72428c9d3fa27ab43bb3e0b2e297bf3b22861e.tar.xz
Allow a viewer UDP image request retry to trigger another asset fetch if an existing fetch hasn't responded before a timeout.
This is to stop a high priority image/texture request from blocking the entire download queue if its asset fetch got dropped for some reason.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
index a48251f..073c357 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
@@ -101,9 +101,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
101 101
102 // Do a linear search for this texture download 102 // Do a linear search for this texture download
103 lock (m_syncRoot) 103 lock (m_syncRoot)
104 {
105 m_priorityQueue.Find(delegate(J2KImage img) { return img.TextureID == newRequest.RequestedAssetID; }, out imgrequest); 104 m_priorityQueue.Find(delegate(J2KImage img) { return img.TextureID == newRequest.RequestedAssetID; }, out imgrequest);
106 }
107 105
108 if (imgrequest != null) 106 if (imgrequest != null)
109 { 107 {
@@ -124,8 +122,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
124// "[LL IMAGE MANAGER]: Received duplicate of existing request for {0}, start packet {1} from {2}", 122// "[LL IMAGE MANAGER]: Received duplicate of existing request for {0}, start packet {1} from {2}",
125// newRequest.RequestedAssetID, newRequest.PacketNumber, m_client.Name); 123// newRequest.RequestedAssetID, newRequest.PacketNumber, m_client.Name);
126 124
127 //m_log.DebugFormat("[TEX]: (UPD) ID={0}: D={1}, S={2}, P={3}", 125// m_log.DebugFormat("[TEX]: (UPD) ID={0}: D={1}, S={2}, P={3}",
128 // newRequest.RequestedAssetID, newRequest.DiscardLevel, newRequest.PacketNumber, newRequest.Priority); 126// newRequest.RequestedAssetID, newRequest.DiscardLevel, newRequest.PacketNumber, newRequest.Priority);
129 127
130 //Check the packet sequence to make sure this isn't older than 128 //Check the packet sequence to make sure this isn't older than
131 //one we've already received 129 //one we've already received