aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/Tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang3-62/+68
2017-06-13coment out tests that now depend on active thread poolUbitUmarov1-1/+2
2017-01-05Massive tab and trailing space cleanupMelanie Thielker3-55/+55
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel6-330/+473
2015-09-02seems to compile ( tests comented out)UbitUmarov1-6/+11
2014-12-30Comment out the debugging statements added in the last commit. KeepingMic Bowman1-4/+4
them in the code for later use rather than just reverting them. Fixed the throttle tests for the new algorithm used when packets are marked as expired.
2014-12-30Fix the throttle tests. Remove the hardcoded constant multipliers andMic Bowman1-9/+11
compute the expected values without depending on the token bucket code.
2014-12-29Change the effect of successfully acknowledged packets to bump theMic Bowman1-2/+2
adaptive throttle by a full MTU. This is consistent with some implementations of congestion control algorithms and certainly has the effect of opening the throttle window more quickly after errors. This is especially important after initial scene load when the number and size of packets is small.
2014-11-25Fix recent regression where adaptive throttles stopped adjusting.Justin Clark-Casey (justincc)1-14/+28
Extends regression tests to test response of adaptive throttles to ack'ed and expired packets.
2014-11-25Fix setting of max scene throttle so that setting it restricts the child ↵Justin Clark-Casey (justincc)1-23/+43
client throttles properly. In "show throttles", also renames 'total' column to 'actual' to reflect that it is not necessarily the throttles requested for/by the client. Also fills out 'target' in non-adapative mode to the actual throttle requested for/by the client.
2014-11-25Add request drip rate to assertions for token bucket regression testsJustin Clark-Casey (justincc)1-12/+14
2014-11-25Add regression tests for token buckets on their ownJustin Clark-Casey (justincc)1-1/+49
2014-11-25Make regression throttle tests consistently test target and max throttle ↵Justin Clark-Casey (justincc)1-136/+62
settings. As part of this also refactors code to put all throttle asserts in a single regression test method
2014-11-25Fix an issue where specifying both max client and server outgoing UDP ↵Justin Clark-Casey (justincc)1-2/+160
throttles would cause client throttles to be lower than expected when total requests exceeded the scene limit. This was because specifying a max client throttle would always request the max from the parent server throttle, no matter the actual total requests on the client throttle. This would lead to a lower server multiplier than expected. This change also adds a 'target' column to the "show throttles" output that shows the target rate (as set by client) if adaptive throttles is active. This commit also re-adds the functionality lost in recent 5c1a1458 to set a max client throttle when adaptive is active. This commit also adds TestClientThrottlePerClientAndRegionLimited and TestClientThrottleAdaptiveNoLimit regression tests
2014-11-25extend TestClientThrottleRegionLimited for 2 clients after testing 1. ↵Justin Clark-Casey (justincc)1-25/+71
Renames to TestSingleClientThrottleRegionLimited()
2014-11-25Add regression test TestClientThrottleRegionLimited() for testing simple ↵Justin Clark-Casey (justincc)1-2/+50
behaviour of throttles where a region-wide total outbound limit is in place.
2014-11-25factor out common throttle setting byte[] array construction in ThrottleTests.Justin Clark-Casey (justincc)1-44/+43
2014-11-25Add regression test TestClientThrottleLimited() for throttle behaviour when ↵Justin Clark-Casey (justincc)1-0/+58
a max client total limit is enforced server-side
2014-11-25refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)4-82/+0
package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add
2014-11-25minor: disable logging in regression test TestClientThrottleSetNoLimitJustin Clark-Casey (justincc)1-1/+1
2014-11-25minor: comment out unused method in regression BasicCircuitTestsJustin Clark-Casey (justincc)1-17/+17
2014-11-25Add basic regression test ThrottleTests.TestClientThrottleSetNoLimitJustin Clark-Casey (justincc)1-0/+106
2014-11-25refactor: Move test clientstack setup code out of BasicCircuitTests into ↵Justin Clark-Casey (justincc)2-229/+12
OpenSim.Tests.Common.ClientStackHelpers
2014-08-26Implement experimental non-default mechanism to update scene via a timer ↵Justin Clark-Casey (justincc)1-1/+1
rather than a persistent thread with sleep. This is to see if an inaccuracy in sleep times under load is responsible for increase in frame times even when there is spare time still available. Can currently only be activated by setting "debug scene set update-on-timer true". Can be switched between timer and thread with sleep updates whilst the scene is running.
2014-07-17fix all instances of "non-existant" to "non-existent" (spelling mistakes) ↵Michael Cerquoni1-1/+1
thanks Ai Austin for pointing this out.
2013-09-27refactor: Rename Scene.AddNewClient() to AddNewAgent() to make it obvious in ↵Justin Clark-Casey (justincc)1-1/+2
the code that this is symmetric with CloseAgent()
2013-09-27refactor: rename Scene.IncomingCloseAgent() to CloseAgent() in order to make ↵Justin Clark-Casey (justincc)1-3/+3
it clear that all non-clientstack callers should be using this rather than RemoveClient() in order to step through the ScenePresence state machine properly. Adds IScene.CloseAgent() to replace RemoveClient()
2013-08-08Fix an issue where under teleport v2 protocol, teleporting from regions in ↵Justin Clark-Casey (justincc)1-1/+1
an line from A->B->C would not close region A when reaching C The root cause was that v2 was only closing neighbour agents if the root connection also needed a close. However, fixing this requires the neighbour regions also detect when they should not close due to re-teleports re-establishing the child connection. This involves restructuring the code to introduce a scene presence state machine that can serialize the different add and remove client calls that are now possible with the late close of the This commit appears to fix these issues and improve teleport, but still has holes on at least quick reteleporting (and possibly occasionally on ordinary teleports). Also, has not been completely tested yet in scenarios where regions are running on different simulators
2013-08-05For LLImageManagerTests, make tests execute under synchronous fire and ↵Justin Clark-Casey (justincc)1-8/+12
forget conditions. I generally prefer this approach for regression tests because of the complexity of accounting for different threading conditions.
2013-08-03Fix the failing TestSendImage. J2K decoding is async.Diva Canto1-1/+9
2013-07-06Fix mono warning in LLImageManagerTestsJustin Clark-Casey (justincc)1-1/+1
2013-06-17Fix test failure in BasicCircuitTests from previous commit 0d2fd0d9Justin Clark-Casey (justincc)1-2/+2
2013-04-29minor: Eliminate warning in LLimageManagerTests by properly calling through ↵Justin Clark-Casey (justincc)1-0/+2
to OpenSimTestCase.SetUp()
2012-11-24Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)2-2/+2
automatically turns off any logging enabled between tests
2012-11-15Revert "Merge master into teravuswork", it should have been avination, not ↵teravus1-4/+3
master. This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
2012-10-16minor: Make BasicCircuitTests.SetUp() call overriden base method instead of ↵Justin Clark-Casey (justincc)1-1/+2
ignoring it.
2012-10-12Add AgentUpdate to PacketPool. This is the most common inbound packet from ↵Justin Clark-Casey (justincc)1-2/+2
viewers.
2012-06-29Add IScene.Name for code clarity to replace the RegionInfo.RegionName used ↵Justin Clark-Casey (justincc)1-2/+1
in many, many log messages.
2012-06-08If logging a client out due to ack timeout, do this asynchronously rather ↵Justin Clark-Casey (justincc)1-2/+2
than synchronously on the outgoing packet loop. This is the same async behaviour as normal logouts. This is necessary because the event queue will sleep the thread for 5 seconds on an ack timeout logout as the client isn't around to pick up the final event queue messages.
2012-06-08Add regression test for client logout due to ack timeout.Justin Clark-Casey (justincc)2-87/+97
2012-05-01Add regression test for teleporting between neighbouring regions on the same ↵Justin Clark-Casey (justincc)1-1/+2
simulator This adds a non-advertised wait_for_callback option in [EntityTransfer]. Default is always true. Teleport tests disable the wait for callback from the destination region in order to run within a single thread.
2012-04-27Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)2-2/+2
the same simulator. This involves a large amount of change in test scene setup code to allow test scenes to share shared modules SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static May split these out into separate classes in the future.
2012-03-20Move frame loop entirely within Scene.Update() for better future performance ↵Justin Clark-Casey (justincc)1-1/+1
analysis and stat accuracy. Update() now accepts a frames parameter which can control the number of frames updated. -1 will update until shutdown. The watchdog updating moves above the maintc recalculation for any required sleep since it should be accounted for within the frame.
2012-01-19Add image not in database test for LLImageManagerJustin Clark-Casey (justincc)1-5/+28
2012-01-19refactor: separate out common parts of LLImageManagerTestsJustin Clark-Casey (justincc)1-48/+40
2012-01-19Add LLImageManager regression test for discard caseJustin Clark-Casey (justincc)1-0/+53
2012-01-19Add basic request and send image regression tests for LLImageManagerJustin Clark-Casey (justincc)2-0/+92
2011-12-08Don't reply with an ack packet if the client is not authorized.Justin Clark-Casey (justincc)1-3/+2
2011-12-08Extend TestAddClient() to check that the first packet received is an ack packetJustin Clark-Casey (justincc)2-92/+101
2011-12-08Add OpenSim.Region.ClientStack.LindenUDP.Tests.dll back into the test suiteJustin Clark-Casey (justincc)1-1/+1