aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Committing the second part of Jim Greensky @ Intel Lab's patch, ↵John Hurliman2009-10-171-17/+90
| | | | re-prioritizing updates
* Wrapped the contents of the IncomingPacketHandler loop in a try/catch statementJohn Hurliman2009-10-171-2/+9
|
* Changing avatar movement updates to the Task throttle category until we get ↵John Hurliman2009-10-161-5/+6
| | | | finer grained prioritization of avatars vs. prims
* Prevent oversized packets from crashing the LLUDP server. It will now print ↵John Hurliman2009-10-161-5/+20
| | | | a friendly error message and drop the packet
* * Simplified the prioritization packet creation code to reduce CPU usage and ↵John Hurliman2009-10-163-95/+35
| | | | | | increase throughput. Apologies to Jim for hacking on your code while it's only halfway done, I'll take responsibility for the manual merge * Changed LLUDP to use its own MTU value of 1400 instead of the 1200 value pulled from the currently shipped libomv
* * Changing the "clean dropped attachments" MySQL command to a using ↵John Hurliman2009-10-161-1/+2
| | | | | | statement inside a try/catch. This statement times out for me very frequently * More verbose logging when zerocoding fails on an outbound packet
* * Change appearance packets from State to Task. This will hopefully fix the ↵John Hurliman2009-10-163-37/+46
| | | | | | cloud issues * Changed the throttling logic to obey the requested client bandwidth limit but also share bandwidth between some of the categories to improve throughput on high prim or heavily trafficked regions
* Merge branch 'master' of ssh://opensimulator.org/var/git/opensim into ↵John Hurliman2009-10-161-7/+27
|\ | | | | | | prioritization
| * Thank you, Fly man, for plumbing the AvatarInterestsUpdate packetMelanie2009-10-161-5/+22
| |
| * * Request from lkalif to have the Sim send a coarselocationupdate for each ↵Teravus Ovares (Dan Olivares)2009-10-151-2/+5
| | | | | | | | | | | | | | avatar in the sim, including yourself. * Apparently the LLClientView should have been doing this previously.. Also fixed the 'You' on the index block.. so the client doesn't display an extra green dot. * Thanks lkalif for bringing it to our attention.
* | Object update prioritization by Jim Greensky of Intel Labs, part one. This ↵John Hurliman2009-10-151-209/+135
| | | | | | | | implements a simple distance prioritizer based on initial agent positions. Re-prioritizing and more advanced priority algorithms will follow soon
* | Replaced the update lists with a priority queue implementation in LLClientViewjjgreens2009-10-151-45/+179
| | | | | | | | | | | | | | Replaced the update lists with a priority queue implementation in LLClientView. The priority queues are based on the MinHeap implementation also included in this commit within the OpneSim.Framework namespace. Initially setup to exactly mimic the behavior beofre the change which was a first come first serve queue.
* | * Removed some of the redundant broadcast functions in Scene and SceneGraph ↵John Hurliman2009-10-151-1/+228
|/ | | | | | | | so it is clear who/what the broadcast is going to each time * Removed two redundant parameters from SceneObjectPart * Changed some code in terse update sending that was meant to work with references to work with value types (since Vector3 and Quaternion are structs) * Committing a preview of a new method for sending object updates efficiently (all commented out for now)
* Allow the LLUDP server to run in either synchronous or asynchronous mode ↵John Hurliman2009-10-142-6/+29
| | | | with a config setting, defaulting to synchronous mode
* * Clean up the SetThrottle() code and add a maxBurstRate parameter to allow ↵John Hurliman2009-10-143-97/+155
| | | | more tweaking in the future
* * Switched to a plain lock for the ClientManager collections and protected ↵John Hurliman2009-10-141-1/+3
| | | | | | the TryGetValues with try/catch instead of a lock * Added ClientManager.ForEachSync() for operations that need to run synchronously, such as "show connections"
* * Read scene_throttle_bps from the config file and use itJohn Hurliman2009-10-142-10/+5
| | | | * Minor formatting cleanup
* Merge branch 'htb-throttle' of ssh://opensimulator.org/var/git/opensim into ↵John Hurliman2009-10-143-11/+58
|\ | | | | | | htb-throttle
| * Merge branch 'master' into htb-throttleMelanie2009-10-143-11/+58
| |\
| | * Better handling of missing assets.Diva Canto2009-10-131-9/+16
| | |
| | * Better handling of missing assets.Diva Canto2009-10-121-9/+23
| | |
| | * Stop the recurring texture requests for textures that truly don't exist.Diva Canto2009-10-121-2/+2
| | |
| | * * Fixes http://opensimulator.org/mantis/view.php?id=4225Diva Canto2009-10-123-7/+33
| | | | | | | | | | | | | | | * Fixes http://opensimulator.org/mantis/view.php?id=3959 * Allows for viewing inventory textures outside home grid
| | * * Changed logic of enabling LLProxyLoginModule to follow the new style -- ↵Diva Canto2009-10-111-2/+4
| | | | | | | | | | | | | | | | | | true/false on the name, rather than gridmode=true. * Better error messages on Add/Remove clients.
| | * Slight variation on the locking scheme: now locking always, except the ↵Diva Canto2009-10-091-9/+9
| | | | | | | | | | | | ForEach, which gets a copy of the Array. I think the ForEach was the big gorilla.
| | * This is to *try* to avoid the exception we are seeing repeatedly:Diva Canto2009-10-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #13:53:03 - [LLUDPSERVER]: Packet exceeded buffer size during zerocoding. Removing MSG_ZEROCODED flag #13:53:03 - [Scene]: Failed with exception System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. # at System.Buffer.BlockCopy (System.Array src, Int32 srcOffset, System.Array dst, Int32 dstOffset, Int32 count) [0x000b7] in /home/grid/install/mono24/mono-2.4.2.3/mcs/class/corlib/System/Buffer.cs:116 # at OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.SendPacketData (OpenSim.Region.ClientStack.LindenUDP.LLUDPClient client, System.Byte[] data, Int32 dataLength, PacketType type, Boolean doZerocode, ThrottleOutPacketType category) [0x00060] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs:290 # at OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.SendPacket (OpenSim.Region.ClientStack.LindenUDP.LLUDPClient client, OpenMetaverse.Packets.Packet packet, ThrottleOutPacketType category, Boolean allowSplitting) [0x00077] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs:265 # at OpenSim.Region.ClientStack.LindenUDP.LLClientView.OutPacket (OpenMetaverse.Packets.Packet packet, ThrottleOutPacketType throttlePacketType) [0x00000] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs:5244 # at OpenSim.Region.ClientStack.LindenUDP.LLClientView.SendCoarseLocationUpdate (System.Collections.Generic.List`1 users, System.Collections.Generic.List`1 CoarseLocations) [0x0012a] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs:3424 # at OpenSim.Region.Framework.Scenes.ScenePresence.SendCoarseLocationsDefault (UUID sceneId, OpenSim.Region.Framework.Scenes.ScenePresence p) [0x000fa] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/Framework/Scenes/ScenePresence.cs:2536 # at OpenSim.Region.Framework.Scenes.ScenePresence.SendCoarseLocations () [0x0000d] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/Framework/Scenes/ScenePresence.cs:2491 # at OpenSim.Region.Framework.Scenes.ScenePresence.Update () [0x00011] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/Framework/Scenes/ScenePresence.cs:2404 # at OpenSim.Region.Framework.Scenes.SceneGraph.UpdateEntities () [0x0001b] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/Framework/Scenes/SceneGraph.cs:164 # at OpenSim.Region.Framework.Scenes.Scene.Update () [0x000dc] in /home/grid/PLAZA/wrightplaza/opensim/OpenSim/Region/Framework/Scenes/Scene.cs:1031 On Region: Wright Plaza
| | * Putting this to exactly what it was yesterday around this time, so we can do ↵Diva Canto2009-10-092-182/+411
| | | | | | | | | | | | the 100-ppl load test in WP. We need to carefully play with this code in order to understand all the problems.
* | | * Minimized the number of times textures are pulled off the priority queueJohn Hurliman2009-10-147-67/+141
|/ / | | | | | | | | | | * OnQueueEmpty is still called async, but will not be called for a given category if the previous callback for that category is still running. This is the most balanced behavior I could find, and seems to work well * Added support for the old [ClientStack.LindenUDP] settings (including setting the receive buffer size) and added the new token bucket and global throttle settings * Added the AssetLoaderEnabled config variable to optionally disable loading assets from XML every startup. This gives a dramatic improvement in startup times for those who don't need the functionality every startup
* | * Split Task category into Task and StateJohn Hurliman2009-10-132-30/+45
| | | | | | | | * Crude prioritization hack
* | * Copied LocklessQueue.cs into OpenSim.Framework and added the .Count ↵John Hurliman2009-10-135-80/+103
| | | | | | | | | | | | | | | | | | property and .Clear() method * Changed the way the QueueEmpty callback is fired. It will be fired asynchronously as soon as an empty queue is detected (this can happen immediately following a dequeue), and will not be fired again until at least one packet is dequeued from that queue. This will give callbacks advanced notice of an empty queue and prevent callbacks from stacking up while the queue is empty * Added LLUDPClient.IsConnected checks in several places to prevent unwanted network activity after a client disconnects * Prevent LLClientView.Close() from being called twice every disconnect * Removed the packet resend limit and improved the client timeout check
* | * Consolidated adding / removing ClientManager IClientAPIs to two places in ↵John Hurliman2009-10-132-69/+5
| | | | | | | | | | | | | | | | Scene * Added some missing implementations of IClientAPI.RemoteEndPoint * Added a ClientManager.Remove(UUID) overload * Removed a reference to a missing project from prebuild.xml
* | * Fixed a bug where clients were being added to ClientManager twiceJohn Hurliman2009-10-133-48/+41
| | | | | | | | | | | | * Changed the ClientManager interface to reduce potential errors with duplicate or mismatched keys * Added IClientAPI.RemoteEndPoint, which can (hopefully) eventually replace IClientAPI.CircuitCode * Changed the order of operations during client shutdown
* | * Rewrote ClientManager to remove Lindenisms from OpenSim core, improve ↵John Hurliman2009-10-134-271/+107
| | | | | | | | | | | | | | | | performance by removing locks, and replace LLUDPClientCollection * Removed the confusing (and LL-specific) shutdowncircuit parameter from IClientAPI.Close() * Updated the LLUDP code to only use ClientManager instead of trying to synchronize ClientManager and m_clients * Remove clients asynchronously since it is a very slow operation (including a 2000ms sleep)
* | * Unregister event handlers in LLUDPServer when a client logs out and ↵John Hurliman2009-10-132-239/+221
| | | | | | | | | | | | | | | | disconnects * Move ViewerEffect handling to Scene.PacketHandlers * Removing the unused CloseAllAgents function * Trimming ClientManager down. This class needs to be reworked to keep LLUDP circuit codes from intruding into the abstract OpenSim core code
* | Avoid checking m_clients collection twice when a UseCircuitCode packet is ↵John Hurliman2009-10-132-28/+30
| | | | | | | | received
* | * Broke the circular reference between LLClientView and LLUDPClient. This ↵John Hurliman2009-10-132-59/+77
| | | | | | | | | | | | should speed up garbage collection on the large LLClientView objects, and also prevents handling packets for disconnected clients * Renamed local LLUDPClient variables to udpClient to avoid naming confusion between LLUDPClient and LLClientView
* | * Eliminated unnecessary parameters from LLUDPServer.SendPacketData()John Hurliman2009-10-131-5/+8
| | | | | | | | * Changed PrimMesher's Quat.Identity to return <0,0,0,1> instead of <0,0,0,1.1>
* | * Changed the "Packet exceeded buffer size" log line to debug and include ↵John Hurliman2009-10-092-8/+5
| | | | | | | | | | | | the packet type. This message is normal, but could be evidence of a message marked for zerocoding that probably shouldn't be * Changing OpenSimUDPBase back to high concurrency. High concurrency mode seems to make other problems happen faster, so it's helpful for working out other bugs and will probably
* | Slow down the packet receiving code again after new reports of thread storms.Melanie2009-10-091-4/+8
| |
* | Forgot to initialize m_writeLockJohn Hurliman2009-10-091-1/+1
| |
* | Added more debugging output to the "unrecognized source" warningJohn Hurliman2009-10-091-1/+2
| |
* | * Added a lock object for the write functions in LLUDPClientCollection ↵John Hurliman2009-10-093-210/+169
| | | | | | | | | | | | | | (immutable != concurrent write safety) * Allow the UDP server to bind to a user-specified port again * Updated to a newer version of OpenSimUDPBase that streamlines the code even more. This also reintroduces the highly concurrent packet handling which needs more testing
* | Simplified LLUDPClientCollection from three collections down to one. This ↵John Hurliman2009-10-083-95/+29
| | | | | | | | will prevent any potential problems from inconsistency between the internal collections
* | Fear the lockless LLUDP implementation!John Hurliman2009-10-081-192/+60
|/
* Putting the lock back in TryGetValue.Diva Canto2009-10-082-349/+349
|
* Fork UDPBase from libOMV into opensimMelanie2009-10-082-1/+341
|
* Added guards against the exception reported:Diva Canto2009-10-081-0/+9
| | | | | | | | | #2009-10-08 12:58:34,462 ERROR - OpenSim.Application [APPLICATION]: #APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs # #Exception: System.Exception: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. # at OpenSim.Region.ClientStack.LindenUDP.J2KImage.SendFirstPacket(LLClientView client) in c:\Opensim\OpenSim\Region\ClientStack\LindenUDP\J2KImage.cs:line 230 # at OpenSim.Region.ClientStack.LindenUDP.J2KImage.SendPackets(LLClientView client, Int32 maxpack) in c:\Opensim\OpenSim\Region\ClientStack\LindenUDP\J2KImage.cs:line 84
* One last attempt at tunning the locking/no locking behaviour. The previous ↵Diva Canto2009-10-071-10/+16
| | | | one was too lax and made the important login packets fail.
* Another go at the deadlock: not locking TryGetValue, and just catch/ignore ↵Diva Canto2009-10-071-15/+31
| | | | exceptions.
* Changed the locking mechanism, because the existing one is causing deadlocks ↵Diva Canto2009-10-071-25/+100
| | | | to occur.