Justin Clark-Casey (justincc)
064897be85
On pCampbot, if we add the none (n) behaviour then make it actually stop any bots in motion.
...
Previously, adding this behaviour after physics (p) would leave the bot to drift off for ever in its last movement direction.
2014-10-29 00:29:11 +00:00
Justin Clark-Casey (justincc)
4275342515
Add "wearables check" console command
...
This checks that all the wearable assets and any assets for a given logged in avatar exist in the asset service
2014-10-28 23:00:49 +00:00
Justin Clark-Casey (justincc)
cc23d4bac5
Add "wearables show" console command.
...
This shows summary wearables information (shape, hair, etc.) for all avatars in the scene or specific information about a given avatar's wearables.
Similar to the existing "attachments show" command.
2014-10-28 17:29:04 +00:00
Justin Clark-Casey (justincc)
1c12930c03
Fix recent regression where adaptive throttles stopped adjusting.
...
Extends regression tests to test response of adaptive throttles to ack'ed and expired packets.
2014-10-28 00:44:03 +00:00
Justin Clark-Casey (justincc)
096aecc097
Fix setting of max scene throttle so that setting it restricts the child 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-10-25 02:09:37 +01:00
Justin Clark-Casey (justincc)
bda36ad2e0
Add request drip rate to assertions for token bucket regression tests
2014-10-25 00:36:50 +01:00
Justin Clark-Casey (justincc)
67007c7d21
Add regression tests for token buckets on their own
2014-10-25 00:32:46 +01:00
Justin Clark-Casey (justincc)
cdc3301a33
Make regression throttle tests consistently test target and max throttle settings.
...
As part of this also refactors code to put all throttle asserts in a single regression test method
2014-10-25 00:09:39 +01:00
Justin Clark-Casey (justincc)
27efecc82f
minor: In "show client stats" command, properly handle the case where a client has made no AgentUpdate requests (as is the case with agents that have only even been child) rather than throwing an exception
2014-10-24 21:52:31 +01:00
Justin Clark-Casey (justincc)
a17bbeca9d
minor: Correct letter accidentally added to copyright notice on top of Scene.cs (almost five years ago!)
2014-10-22 23:51:14 +01:00
Justin Clark-Casey (justincc)
6fa8ddf0fc
In Scene.AddNewAgent(), avoid a situation where an exception can result in a client being added to the manager without IClientAPI.SceneAgent being set.
...
This is done by adjusting the order of code so that SceneAgent will always be set before adding the client.
Various parts of the code (rightly) assume that a a client registered to the manager will always have a SceneAgent set no matter what.
2014-10-22 23:46:05 +01:00
Justin Clark-Casey (justincc)
7d2aad3873
For now, send all non-full terse updates for ones own avatar directly to the LLUDP client stack rather than queueing internally within LLClientView.
...
When an HG avatar enters a scene, it delays processing of entity updates. Could be crowding out by other updates or something else.
This delay in ones own av mvmt updates results in mvmt lag experienced on the client. Avoiding the internal LLClientView for these packets appears to resolve this issue.
Appears most noticeably for avatars with attachments, though has also been seen on those without sometimes. Hasn't been observed for non-HG avatars in general.
Will be investigating exactly what the problem is, at which point there will be a more permanent solution.
2014-10-21 18:27:09 +01:00
Justin Clark-Casey (justincc)
c1a2c4a0bd
Add "debug lludp throttles get/set request" and get current
...
This allows one to set the requested throttle (which normally comes from the client) as opposed to the max.
2014-10-21 02:29:39 +01:00
Justin Clark-Casey (justincc)
eaa048eb89
Change the word order of some debug lludp settings for readability
...
On server, scene-throttle-max becomes max-scene-throttle and likewise max-new-client-throttle
On clients, throttle-max becomes max
2014-10-21 02:17:38 +01:00
Justin Clark-Casey (justincc)
bb3e68c069
Add "debug lludp get/set new-client-throttle-max" to allow default new client throttle to be set separately from existing clients.
...
"debug lludp throttles get/set throttle-max" now only gets and sets current max client throttles
2014-10-21 02:10:55 +01:00
Justin Clark-Casey (justincc)
5dc0730f06
Add "debug lludp get" command which currently just shows scene-throttle-max to mirror "debug lludp set"
...
Information is also available in "show server throttles" but that's more for non-debug info rather than attempting to get and set parameters on the fly for debug purposes.
2014-10-21 01:48:59 +01:00
Justin Clark-Casey (justincc)
3e25e6a170
Add some more llGiveInventory() regression tests
2014-10-20 23:57:16 +01:00
Melanie Thielker
c6f39a0bfd
Fix transferring inventory from prims to agent inventory
2014-10-20 23:50:17 +01:00
Justin Clark-Casey (justincc)
830735a42f
When inserting missing CreatorData in the HGAssetMapper, do the rewrite on a streaming xml basis rather than loading it all into memory via XmlDocument.
...
This is because objects with lots of parts can have a lot of xml to load into memory, and this has been seen to have a noticeable performance impact.
Whereas streaming has been seen to reduce the impact in normal serialization.
Implmentation is messy but I couldn't see a better way of doing it when you can't assume that you know the exact structure of the input XML.
2014-10-20 23:46:34 +01:00
Justin Clark-Casey (justincc)
dede17b0d2
Add regression test TestPostAssetRewrite() to check results of HGAssetMapper.Post() object asset rewriting,
2014-10-16 01:13:38 +01:00
Justin Clark-Casey (justincc)
a54c784b81
If an exception makes it to the top of a JobEngine request, catch and log instead of letting it terminate the simulator...
2014-10-14 20:42:41 +01:00
Justin Clark-Casey (justincc)
493a86dfed
Allow GetMesh capability to be served directly by a server like GetTexture
...
To do this required GetMesh to be converted to a BaseStreamHandler
Unlike GetTexture connector, no redirect URL functionality yet (this wasn't present in the first place).
2014-10-14 18:37:22 +01:00
Justin Clark-Casey (justincc)
22020927c6
Start JobEngine by default in simulator for now.
2014-10-14 17:13:53 +01:00
Justin Clark-Casey (justincc)
b9b2f5686f
If JobEngine is active, then use it to copy/rez attachments for an avatar entering the scene that isn't initially logging on. This will execute tasks consecutively rather than concurrently.
...
This has two aims
1) Reduce initial teleport failures when a foreign Hypergrid user enters a region by not holding up the teleport for attachment rez (this can be particularly costly when HG gets all assets in the object graph.
2) Reduce server load that may impact other simulator activities.
This complements existing JobEngine options that perform initial login attachment rez and appearance send in consecutive tasks.
2014-10-14 16:57:58 +01:00
Justin Clark-Casey (justincc)
275613ad83
minor: be consistent about reporting errors out of HttpServerBase
2014-10-14 00:35:15 +01:00
Justin Clark-Casey (justincc)
2935e79ca3
If the port entry in [Network] for a server is missing, then actually tell the user that's the problem rather than simply exiting silently.
...
Also exit with Environment.Exit(), not by aborting the thread.
2014-10-13 23:57:46 +01:00
Justin Clark-Casey (justincc)
0437d44785
Add an IConfigSource constructor to HGAssetBroker so that it can be instantiated directly for potentially handling some capabilities directly in services with HG active
2014-10-13 23:10:08 +01:00
Justin Clark-Casey (justincc)
00e31de872
Fix an issue where specifying both max client and server outgoing UDP 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-10-10 23:36:50 +01:00
Justin Clark-Casey (justincc)
458540400a
Use automatic properties for Parent and TotalDripRequest in TokenBucket to make code analysis easier. No functional change.
2014-10-10 18:38:54 +01:00
Justin Clark-Casey (justincc)
5c1a14587d
Remove the unnecessary intermediate total token bucket.
...
This only had one child, which is the 'adaptive' token bucket.
So from testing and currently analysis, we can use that bucket directly which simplifies the code.
2014-10-10 00:58:16 +01:00
Justin Clark-Casey (justincc)
b28b31b3ee
minor: remove warnings from unused fields in LocalGridServicesConnector
2014-10-09 01:30:24 +01:00
Justin Clark-Casey (justincc)
16eb9253b0
minor: Remove unused field from EntityTransferModule
2014-10-09 01:25:11 +01:00
Justin Clark-Casey (justincc)
ba0707ca1e
minor: remove compiler warning from unused field in SimulatorFeaturesModule
2014-10-09 01:23:53 +01:00
Justin Clark-Casey (justincc)
3e4550adf7
minor: resolve warnings from unused fields in XBakesGet and Post handlers
2014-10-09 01:08:21 +01:00
Justin Clark-Casey (justincc)
e902824da7
Remove compiler warning from UserProfilesHandlers
2014-10-09 01:03:45 +01:00
Justin Clark-Casey (justincc)
235eb92c0e
minor: remove warning in BasicHttpAuthentication by commenting out unused remove_me parameter (which looks like it might still be potentially useful for logging)
2014-10-09 00:57:10 +01:00
Justin Clark-Casey (justincc)
d69ab1e037
extend TestClientThrottleRegionLimited for 2 clients after testing 1. Renames to TestSingleClientThrottleRegionLimited()
2014-10-09 00:51:36 +01:00
Justin Clark-Casey (justincc)
d69e3760e1
Add regression test TestClientThrottleRegionLimited() for testing simple behaviour of throttles where a region-wide total outbound limit is in place.
2014-10-08 23:54:11 +01:00
Justin Clark-Casey (justincc)
a83f5f2153
factor out common throttle setting byte[] array construction in ThrottleTests.
2014-10-08 22:50:34 +01:00
Justin Clark-Casey (justincc)
3802f2da3b
Add regression test TestClientThrottleLimited() for throttle behaviour when a max client total limit is enforced server-side
2014-10-08 21:30:52 +01:00
Justin Clark-Casey (justincc)
51043746f3
refactor: consistently put all test classes in the OpenSim.Tests.Common 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-10-08 21:09:25 +01:00
Justin Clark-Casey (justincc)
b6eaef79dd
minor: disable logging in regression test TestClientThrottleSetNoLimit
2014-10-08 20:54:09 +01:00
Justin Clark-Casey (justincc)
c993067204
minor: comment out unused method in regression BasicCircuitTests
2014-10-08 20:53:39 +01:00
Justin Clark-Casey (justincc)
ef39fcf465
Add basic regression test ThrottleTests.TestClientThrottleSetNoLimit
2014-10-08 20:52:17 +01:00
Justin Clark-Casey (justincc)
e8337d6a51
refactor: Move test clientstack setup code out of BasicCircuitTests into OpenSim.Tests.Common.ClientStackHelpers
2014-10-08 20:17:51 +01:00
Justin Clark-Casey (justincc)
90b31a2f54
Fix recent regression in "debug lludp throttles get" command that stopped it printing any information. Also fix max throttle displayed to be properly kbps
2014-10-08 00:46:24 +01:00
Justin Clark-Casey (justincc)
b40220885e
minor: in "show server throttles", display unset if new client throttle value is not set rather than 0
2014-10-08 00:31:35 +01:00
Justin Clark-Casey (justincc)
649891a0d8
Add throttle-max option to "debug lludp throttles set" to allow runtime setting of default and existing client throttles.
...
Doesn't yet adjust until clients submit new throttle settings.
2014-10-07 18:34:08 +01:00
Justin Clark-Casey (justincc)
a529bc8f2a
Change "debug lludp throttle *" commands to "debug lludp throttles" for consistency (and because I keep typing throttles).
...
This will still work with "debug lludp throttle" anyway.
2014-10-07 01:44:36 +01:00
Justin Clark-Casey (justincc)
16aca6ddbd
small adjustment to commented out scene_throttle_max_bps and client_throttle_max_bps examples in OpenSimDefaults.ini
...
Make them actually reflect 20 mbit and 1.5 mbit respectively
2014-10-07 01:14:13 +01:00