aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang1-6/+15
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel1-4/+15
2011-10-12minor: insert some commented out log lines which are a blunt but useful ↵Justin Clark-Casey (justincc)1-0/+8
instrument to see packet expiry and received acks
2011-10-12Improve some method doc for LLUDPClient, LLUDPServer and UnackedPacketCollectionJustin Clark-Casey (justincc)1-6/+11
2011-04-30First stab at cleaning up Caps. Compiles. Untested.Diva Canto1-0/+0
2011-04-21Refactor UnackedPacketCollection so ProcessQueues will handle Adds, Acks, ↵Dan Lake1-24/+32
and Removes in that order.
2011-04-21Added ability to remove unacked packet from UnackedPacketCollection without ↵Dan Lake1-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.
2011-04-20Adds the first pass at an adaptive throttle to slow start newMic Bowman1-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.
2011-02-10Reinstated a couple of null checks related to the previous revert.Diva Canto1-11/+15
2011-02-10Revert "Hunting down mantis #5365"Diva Canto1-30/+15
This reverts commit ebeef02fef1a04b5b4cfe13dad588bcce7f9ba21.
2011-02-07Hunting down mantis #5365Diva Canto1-15/+30
Revert "refactor: remove redundant null checks" This reverts commit 6e58996b4d9db202cd7795a37bd687362effef48.
2011-01-17refactor: remove redundant null checksJustin Clark-Casey (justincc)1-30/+15
2011-01-17Fix UnackedBytes client stack statistic as seen in "show queues"Justin Clark-Casey (justincc)1-1/+3
Bytes were being wrongly added again on a resend
2010-10-04Revert "Add linden prim renderer and update libOMV"Melanie1-31/+16
This reverts commit 766ce9a14146dc9814d488364f5c931d0fa96a17.
2010-10-04Revert "Fix a comment marker"Melanie1-1/+1
This reverts commit f89dd85f68e3e05c0ca908e5358d935a6ea3a321.
2010-10-04Fix a comment markerMelanie1-1/+1
2010-10-04Add linden prim renderer and update libOMVMelanie1-16/+31
2010-09-07Rolling back the recent libomv update but keeping the ExpiringCache cleanups ↵John Hurliman1-2/+2
(as much as is possible). There was a report of non-finite avatar positions after the update
2010-09-07* Cache null account responses in the SimianUserAccountServiceConnector to ↵John Hurliman1-2/+2
avoid repeated requests for missing avatar IDs * Updated to OpenMetaverse r3442 to fix a timezone issue with ExpiringCache
2009-10-21* Change the OnQueueEmpty signature to send the flags of the queues that are ↵John Hurliman1-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)
2009-10-21* Clarified what FireQueueEmpty is doing with a MIN_CALLBACK_MS constant and ↵John Hurliman1-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()
2009-10-21* FireQueueEmpty now checks if a measurable amount of time has passed, and ↵John Hurliman1-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
2009-10-21* Handle UseCircuitCode packets asynchronously. Adding an agent to a scene ↵John Hurliman1-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
2009-10-21* Replaced the UnackedPacketCollection with a lockless implementation. The ↵John Hurliman1-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
2009-10-20* Added a sanity check to GetScriptAssemblies() and GetScriptStates() for ↵John Hurliman1-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)
2009-10-13* Copied LocklessQueue.cs into OpenSim.Framework and added the .Count ↵John Hurliman1-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
2009-10-06Applying the real fix (thank you for tracking that MSDN doc down Melanie)John Hurliman1-5/+6
2009-10-06Trying Melanie's fixJohn Hurliman1-3/+4
2009-10-06* Added a sanity check for Mono before trying to enumerate over an empty ↵John Hurliman1-0/+3
SortedDictionary * Changed the order of a log line from DotNetEngine so you can tell whether or not it is actually loading
2009-10-06* Added missing references to prebuild.xml and commented out the LindenUDP ↵John Hurliman1-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
2009-10-06* Continued work on the new LLUDP implementation. Appears to be functioning, ↵John Hurliman1-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