aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/UnackedPacketCollection.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* First stab at cleaning up Caps. Compiles. Untested.Diva Canto2011-04-301-219/+0
|
* Refactor UnackedPacketCollection so ProcessQueues will handle Adds, Acks, ↵Dan Lake2011-04-211-24/+32
| | | | and Removes in that order.
* Added ability to remove unacked packet from UnackedPacketCollection without ↵Dan Lake2011-04-211-0/+28
| | | | an acknowledgement from the network. This prevents RTT and throttles from being updated as they would when an ACK is actually received. Also fixed stats logging for unacked bytes and resent packets in this case.
* Adds the first pass at an adaptive throttle to slow start newMic Bowman2011-04-201-0/+8
| | | | | | | | clients. If the sent packets are ack'ed successfully the throttle will open quickly up to the maximum specified by the client and/or the sims client throttle. This still needs a lot of adjustment to get the rates correct.
* Reinstated a couple of null checks related to the previous revert.Diva Canto2011-02-101-11/+15
|
* Revert "Hunting down mantis #5365"Diva Canto2011-02-101-30/+15
| | | | This reverts commit ebeef02fef1a04b5b4cfe13dad588bcce7f9ba21.
* Hunting down mantis #5365Diva Canto2011-02-071-15/+30
| | | | | | Revert "refactor: remove redundant null checks" This reverts commit 6e58996b4d9db202cd7795a37bd687362effef48.
* refactor: remove redundant null checksJustin Clark-Casey (justincc)2011-01-171-30/+15
|
* Fix UnackedBytes client stack statistic as seen in "show queues"Justin Clark-Casey (justincc)2011-01-171-1/+3
| | | | Bytes were being wrongly added again on a resend
* Fix a comment markerMelanie2010-10-041-1/+1
|
* Add linden prim renderer and update libOMVMelanie2010-10-041-16/+31
|
* * Change the OnQueueEmpty signature to send the flags of the queues that are ↵John Hurliman2009-10-211-0/+5
| | | | | | | empty instead of firing once per empty queue * Change the OnQueueEmpty firing to use a minimum time until next fire instead of a sleep * Set OutgoingPacket.TickCount = 0 earlier to avoid extra resends when things are running slowly (inside a profiler, for example)
* * Clarified what FireQueueEmpty is doing with a MIN_CALLBACK_MS constant and ↵John Hurliman2009-10-211-1/+1
| | | | | | | upped it to 30ms * Removed the unused PacketSent() function * Switched UnackedPacketCollection from a SortedDictionary to a Dictionary now that the sorting is no longer needed. Big performance improvement for ResendUnacked()
* * FireQueueEmpty now checks if a measurable amount of time has passed, and ↵John Hurliman2009-10-211-4/+0
| | | | | | if not it sleeps for a small amount of time. This throttles OnQueueEmpty calls where there is no callback or the callback is doing very little work * Changed HandleQueueEmpty()'s Monitor.TryEnter() calls to locks. We want to take our time in this function and do all the work necessary, since returning too fast will induce a sleep anyways
* * Handle UseCircuitCode packets asynchronously. Adding an agent to a scene ↵John Hurliman2009-10-211-3/+5
| | | | | | | | can take several seconds, and was blocking up packet handling in the meantime * Clamp retransmission timeout values between three and 10 seconds * Log outgoing time for a packet right after it is sent instead of well before * Loop through the entire UnackedPacketCollection when looking for expired packets
* * Replaced the UnackedPacketCollection with a lockless implementation. The ↵John Hurliman2009-10-211-76/+71
| | | | | | | tiny amount of time spent in the locks turned into a lot of time when the rest of the LLUDP implementation went lockless * Changed the timer tracking numbers for each client to not have "memory". It will no longer queue up calls to functions like ResendUnacked * Reverted Jim's WaitHandle code. Although it was technically more correct, it exhibited the exact same behavior as the old code but spent more cycles. The 20ms has been replaced with the minimum amount of time before a token bucket could receive a drip, and an else { sleep(0); } was added to make sure the outgoing packet handler always yields at least a minimum amount
* * Added a sanity check to GetScriptAssemblies() and GetScriptStates() for ↵John Hurliman2009-10-201-0/+2
| | | | | | the case where no scripting engine is enabled * Added TokenBucket.cs to OpenSim, with some fixes for setting a more accurate MaxBurst value and getting a more accurate Content value (by Drip()ing each get)
* * Copied LocklessQueue.cs into OpenSim.Framework and added the .Count ↵John Hurliman2009-10-131-0/+9
| | | | | | | | | 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
* Applying the real fix (thank you for tracking that MSDN doc down Melanie)John Hurliman2009-10-061-5/+6
|
* Trying Melanie's fixJohn Hurliman2009-10-061-3/+4
|
* * Added a sanity check for Mono before trying to enumerate over an empty ↵John Hurliman2009-10-061-0/+3
| | | | | | SortedDictionary * Changed the order of a log line from DotNetEngine so you can tell whether or not it is actually loading
* * Added missing references to prebuild.xml and commented out the LindenUDP ↵John Hurliman2009-10-061-4/+45
| | | | | | | | 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
* * Continued work on the new LLUDP implementation. Appears to be functioning, ↵John Hurliman2009-10-061-0/+114
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