diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs | 50 |
1 files changed, 5 insertions, 45 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs index 91efe8a..b5a70040 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs | |||
@@ -60,11 +60,10 @@ namespace OpenSim.Region.ClientStack.Linden | |||
60 | private IAssetService m_AssetService; | 60 | private IAssetService m_AssetService; |
61 | private bool m_Enabled = true; | 61 | private bool m_Enabled = true; |
62 | private string m_URL; | 62 | private string m_URL; |
63 | <<<<<<< HEAD | 63 | |
64 | private string m_URL2; | 64 | private string m_URL2; |
65 | private string m_RedirectURL = null; | 65 | private string m_RedirectURL = null; |
66 | private string m_RedirectURL2 = null; | 66 | private string m_RedirectURL2 = null; |
67 | ======= | ||
68 | 67 | ||
69 | struct aPollRequest | 68 | struct aPollRequest |
70 | { | 69 | { |
@@ -94,7 +93,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
94 | new OpenMetaverse.BlockingQueue<aPollRequest>(); | 93 | new OpenMetaverse.BlockingQueue<aPollRequest>(); |
95 | 94 | ||
96 | private Dictionary<UUID, PollServiceMeshEventArgs> m_pollservices = new Dictionary<UUID, PollServiceMeshEventArgs>(); | 95 | private Dictionary<UUID, PollServiceMeshEventArgs> m_pollservices = new Dictionary<UUID, PollServiceMeshEventArgs>(); |
97 | >>>>>>> avn/ubitvar | 96 | |
98 | 97 | ||
99 | #region Region Module interfaceBase Members | 98 | #region Region Module interfaceBase Members |
100 | 99 | ||
@@ -129,12 +128,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
129 | if (m_URL2 != string.Empty) | 128 | if (m_URL2 != string.Empty) |
130 | { | 129 | { |
131 | m_Enabled = true; | 130 | m_Enabled = true; |
132 | <<<<<<< HEAD | 131 | |
133 | m_RedirectURL2 = config.GetString("GetMesh2RedirectURL"); | 132 | m_RedirectURL2 = config.GetString("GetMesh2RedirectURL"); |
134 | } | 133 | } |
135 | ======= | ||
136 | |||
137 | >>>>>>> avn/ubitvar | ||
138 | } | 134 | } |
139 | 135 | ||
140 | public void AddRegion(Scene pScene) | 136 | public void AddRegion(Scene pScene) |
@@ -177,7 +173,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
177 | 173 | ||
178 | for (uint i = 0; i < 2; i++) | 174 | for (uint i = 0; i < 2; i++) |
179 | { | 175 | { |
180 | m_workerThreads[i] = Watchdog.StartThread(DoMeshRequests, | 176 | m_workerThreads[i] = WorkManager.StartThread(DoMeshRequests, |
181 | String.Format("MeshWorkerThread{0}", i), | 177 | String.Format("MeshWorkerThread{0}", i), |
182 | ThreadPriority.Normal, | 178 | ThreadPriority.Normal, |
183 | false, | 179 | false, |
@@ -336,21 +332,6 @@ namespace OpenSim.Region.ClientStack.Linden | |||
336 | 332 | ||
337 | public void RegisterCaps(UUID agentID, Caps caps) | 333 | public void RegisterCaps(UUID agentID, Caps caps) |
338 | { | 334 | { |
339 | <<<<<<< HEAD | ||
340 | UUID capID = UUID.Random(); | ||
341 | bool getMeshRegistered = false; | ||
342 | |||
343 | if (m_URL == string.Empty) | ||
344 | { | ||
345 | |||
346 | } | ||
347 | else if (m_URL == "localhost") | ||
348 | { | ||
349 | getMeshRegistered = true; | ||
350 | caps.RegisterHandler( | ||
351 | "GetMesh", | ||
352 | new GetMeshHandler("/CAPS/" + capID + "/", m_AssetService, "GetMesh", agentID.ToString(), m_RedirectURL)); | ||
353 | ======= | ||
354 | // UUID capID = UUID.Random(); | 335 | // UUID capID = UUID.Random(); |
355 | if (m_URL == "localhost") | 336 | if (m_URL == "localhost") |
356 | { | 337 | { |
@@ -375,34 +356,13 @@ namespace OpenSim.Region.ClientStack.Linden | |||
375 | caps.RegisterHandler("GetMesh", String.Format("{0}://{1}:{2}{3}", protocol, hostName, port, capUrl)); | 356 | caps.RegisterHandler("GetMesh", String.Format("{0}://{1}:{2}{3}", protocol, hostName, port, capUrl)); |
376 | m_pollservices[agentID] = args; | 357 | m_pollservices[agentID] = args; |
377 | m_capsDict[agentID] = capUrl; | 358 | m_capsDict[agentID] = capUrl; |
378 | |||
379 | |||
380 | |||
381 | >>>>>>> avn/ubitvar | ||
382 | } | 359 | } |
383 | else | 360 | else |
384 | { | 361 | { |
385 | caps.RegisterHandler("GetMesh", m_URL); | 362 | caps.RegisterHandler("GetMesh", m_URL); |
386 | } | 363 | } |
387 | |||
388 | if(m_URL2 == string.Empty) | ||
389 | { | ||
390 | |||
391 | } | ||
392 | else if (m_URL2 == "localhost") | ||
393 | { | ||
394 | if (!getMeshRegistered) | ||
395 | { | ||
396 | caps.RegisterHandler( | ||
397 | "GetMesh2", | ||
398 | new GetMeshHandler("/CAPS/" + capID + "/", m_AssetService, "GetMesh2", agentID.ToString(), m_RedirectURL2)); | ||
399 | } | ||
400 | } | ||
401 | else | ||
402 | { | ||
403 | caps.RegisterHandler("GetMesh2", m_URL2); | ||
404 | } | ||
405 | } | 364 | } |
365 | |||
406 | private void DeregisterCaps(UUID agentID, Caps caps) | 366 | private void DeregisterCaps(UUID agentID, Caps caps) |
407 | { | 367 | { |
408 | string capUrl; | 368 | string capUrl; |