aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * Change appearance packets from State to Task. This will hopefully fix the ↵John Hurliman2009-10-161-1/+1
| | | | | | 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
* Allow the LLUDP server to run in either synchronous or asynchronous mode ↵John Hurliman2009-10-141-1/+6
| | | | with a config setting, defaulting to synchronous mode
* * Clean up the SetThrottle() code and add a maxBurstRate parameter to allow ↵John Hurliman2009-10-141-1/+0
| | | | 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-141-1/+3
| | | | * Minor formatting cleanup
* * Minimized the number of times textures are pulled off the priority queueJohn Hurliman2009-10-141-1/+11
| | | | | | * 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
* * Copied LocklessQueue.cs into OpenSim.Framework and added the .Count ↵John Hurliman2009-10-131-59/+48
| | | | | | | | | 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-131-10/+3
| | | | | | | | 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-131-5/+4
| | | | | | * 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-131-79/+84
| | | | | | | | 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-131-5/+13
| | | | | | | | 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-131-27/+29
| | | | received
* * Broke the circular reference between LLClientView and LLUDPClient. This ↵John Hurliman2009-10-131-57/+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-091-1/+1
| | | | | | 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
* 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-091-10/+10
| | | | | | | (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-081-30/+16
| | | | will prevent any potential problems from inconsistency between the internal collections
* Fork UDPBase from libOMV into opensimMelanie2009-10-081-1/+1
|
* Commented noisy debugging about packet splittingJohn Hurliman2009-10-061-4/+4
|
* * Added missing references to prebuild.xml and commented out the LindenUDP ↵John Hurliman2009-10-061-60/+43
| | | | | | | | tests until a new test harness is written * Clients are no longer disconnected when a packet handler crashes. We'll see how this works out in practice * Added documentation and cleanup, getting ready for the first public push * Deleted an old LLUDP file
* * Try/catch around EndInvoke() when Util.FireAndForget() returns to catch ↵John Hurliman2009-10-061-66/+81
| | | | | | | exceptions thrown in the async method * Added packet stats handling to the new LLUDP implementation * Attempting to avoid a race condition when creating a new LLUDPClient
* * Continued work on the new LLUDP implementation. Appears to be functioning, ↵John Hurliman2009-10-061-42/+96
| | | | | | | | although not everything is reimplemented yet * Replaced logic in ThreadTracker with a call to System.Diagnostics that does the same thing * Added Util.StringToBytes256() and Util.StringToBytes1024() to clamp output at byte[256] and byte[1024], respectively * Fixed formatting for a MySQLAssetData error logging line
* Beginning work on the new LLUDP implementationJohn Hurliman2009-10-051-446/+557
|
* Formatting cleanup.Jeff Ames2009-10-011-19/+19
|
* Added new OpenSim.ini setting: "client_throttle_max_bps" which overrides ↵dahlia2009-08-181-2/+9
| | | | user's viewer network throttle settings
* Removed IAssetCache.Diva Canto2009-08-101-4/+3
| | | | WARNING: PLEASE MAKE SURE TO USE THIS NEW bin/OpenSim.addin.xml
* adding logging statement for receive buffer sizeDr Scofield2009-06-251-0/+2
|
* - adds the possibility of setting the socket receive buffer sizeDr Scofield2009-06-251-35/+51
| | | | | | | | | | | | option for LLUDPServer. On windows .NET the default socket receive buffer size is 8192 bytes, on recent linux systems it's about 111K. both value can be a bit small for an OpenSim instance serving many clients. The socket receive buffer size can be configured via an OpenSim.ini config option - adds a general catch clause to LLUDPServer.OnReceivedData() to prevent it submerging when an unexpected Exception occurs.
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-011-1/+1
| | | | LICENSE.txt.
* Heart surgery on asset service code bits. Affects OpenSim.ini configuration ↵diva2009-05-151-3/+2
| | | | | | | | | | | | -- please see the example. Affects region servers only. This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing. Known problems: * HG asset transfers are borked for now * missing texture is missing * 3 unit tests commented out for now
* Another cleanup: Region_Status renamed to RegionStatus, and a usage comment ↵Johan Berntsson2009-04-151-1/+1
| | | | added
* * Commit a variety of fixes to bugs discovered while trying to fix the NaN ↵Teravus Ovares2009-04-141-0/+1
| | | | | | | | | singularity. * WebStatsModule doesn't crash on restart. GodsModule doesn't crash when there is no Dialog Module. LLUDPServer doesn't crash when the Operation was Aborted. * ODEPlugin does 'Almost NaN' sanity checks. * ODEPlugin sacrifices NaN avatars to the NaN black hole to appease it and keep it from sucking the rest of the world in.
* * Changed a recursive BeginRobustReceive loop to a flat while loop to avoid ↵lbsa712009-03-251-38/+33
| | | | lethal stack overflows.
* Changed IClientNetworkServer.AddScene method from void AddScene(Scene x) to ↵MW2009-03-021-1/+1
| | | | void AddScene(IScene x). As there should be no need for the client view to have a reference to Scene. IScene should be all it needs.
* * optimized usings.lbsa712009-02-121-3/+2
|
* Enforce estate bans on Teleports.diva2009-02-111-3/+3
|
* From Alan Webb <awebb@linux.vnet.ibm.com>Sean Dague2009-02-091-3/+3
| | | | | | | | | | | These changes replace all direct references to the AssetCache with IAssetCache. There is no change to functionality. Everything works as before. This is laying the groundwork for making it possible to register alternative asset caching mechanisms without disrupting other parts of OpenSim or their dependencies upon AssetCache functionality.
* This changeset is the step 1 of 2 in refactoringDr Scofield2009-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
* * minor: move connection success log message so that it doesn't get printed ↵Justin Clarke Casey2009-01-211-6/+6
| | | | again if a duplicate use circuit code packet comes in
* * minor: Change around more debugging messagesJustin Clarke Casey2009-01-141-2/+2
|
* * Do some log tweaking to better see incoming connection success (and failure)Justin Clarke Casey2009-01-141-10/+6
|
* * minor: Stop friendship termination crashing the client thread if the ↵Justin Clarke Casey2009-01-131-2/+1
| | | | friend to be terminated could not be found
* * prune and regrade log messages relating to client login and logoutJustin Clarke Casey2009-01-061-4/+2
|
* * Replace manually zeroing with Array.Clear(). Thanks cmickeybJustin Clarke Casey2008-12-171-4/+1
|
* * Fixes Location == Location, and Location != LocationTeravus Ovares2008-11-281-2/+2
|
* * The equals override of 'Location' is not working as expected. This caused ↵Teravus Ovares2008-11-281-1/+7
| | | | | | | sim restarts to fail because the test that searches for and shutsdown the UDP server listener for that region never found and shutdown the udp server. hence the error message, "only one listener on port". * This is a high profile candidate for a unit test. (big)
* * Added and removed debug information relating to client connectionsAdam Frisby2008-11-181-0/+3
| | | | | | * Minor client fixes * Added the ability for a client to login without a UserProfile, allowing certain alternate clients to connect to the region.
* * Move test scene construction infrastructure methods to a separate class ↵Justin Clarke Casey2008-11-141-1/+1
| | | | for future common use
* If the proxy is on, we need to ignore the extra 6 bytes in the packet.Mike Mazur2008-11-111-0/+1
|