aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-17 20:38:00 +0000
committerJustin Clarke Casey2008-10-17 20:38:00 +0000
commit400314e88430628bad8bda5d5c32989997e9f480 (patch)
treeadb40203d0979551dec74af1c3f2ac5e07de60a7
parent* Don't worry about trying to populate the other dictionaries if a client's c... (diff)
downloadopensim-SC_OLD-400314e88430628bad8bda5d5c32989997e9f480.zip
opensim-SC_OLD-400314e88430628bad8bda5d5c32989997e9f480.tar.gz
opensim-SC_OLD-400314e88430628bad8bda5d5c32989997e9f480.tar.bz2
opensim-SC_OLD-400314e88430628bad8bda5d5c32989997e9f480.tar.xz
* Finally, don't worry about doing containment checks on other dictionaries if we are adding a client
* Regarding an earlier change, I think it would be possible to eliminate the creation of new IPEndPoints on every end receive if we did the client circuit lookup before starting the next receive. However, this would be a performance trade off and hence not worth trying without performance testing
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index a4a6b93..22666f4 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -382,13 +382,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
382 if (!foundExistingCircuit) 382 if (!foundExistingCircuit)
383 { 383 {
384 // This doesn't need locking as it's synchronized data 384 // This doesn't need locking as it's synchronized data
385 if (!clientCircuits_reverse.ContainsKey(useCircuit.CircuitCode.Code)) 385 clientCircuits_reverse[useCircuit.CircuitCode.Code] = epSender;
386 clientCircuits_reverse.Add(useCircuit.CircuitCode.Code, epSender);
387 386
388 lock (proxyCircuits) 387 lock (proxyCircuits)
389 { 388 {
390 if (!proxyCircuits.ContainsKey(useCircuit.CircuitCode.Code)) 389 proxyCircuits[useCircuit.CircuitCode.Code] = epProxy;
391 proxyCircuits.Add(useCircuit.CircuitCode.Code, epProxy);
392 } 390 }
393 391
394 PacketServer.AddNewClient(epSender, useCircuit, m_assetCache, m_circuitManager, epProxy); 392 PacketServer.AddNewClient(epSender, useCircuit, m_assetCache, m_circuitManager, epProxy);