aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-11-25Add [BulletSim] option AvatarToAvatarCollisionsByDefault to control whether ↵Justin Clark-Casey (justincc)3-3/+16
avatars collide. This is true by default. This is implemented with a new collision type (PhantomToOthersAvatar) to potentially allow colliding and non-colliding avatars to be present in the same scene. So there is no provision yet for giving avatars different collision types. This commit replaces the temporary change in commit f3eaa6d8 where avatars would never collide when using BulletSim This is equivalent to the av_av_collisions_off option in ODE.
2014-11-25Fix compile error from previous 1d56029848e96016b5809f596619e32d0ebcc995Justin Clark-Casey (justincc)1-1/+1
2014-11-25Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey (justincc)1-0/+47
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-11-25When processing incoming attachments via HG, if a request for uuid gathering ↵Justin Clark-Casey (justincc)4-29/+121
or final asset import takes too long remove remaining requests from same user to prevent hold up of other user's incoming attachments. This improves upon the earlier naive simply queueing immplementation. Threshold is 30 seconds. If this happens to a user they can relog and fetch will be reattempted.
2014-11-25Introduce an IteratingUuidGatherer where each fetch from the asset service ↵Justin Clark-Casey (justincc)2-47/+579
(iteration) can be controlled by the caller. This is to enable an imminent change where incoming HG scene object fetching can assess the time taken by each request rather than being forced to perform all requests in one call. Soon, this will replace the existing UuidGatherer since it is both simpler and more flexible.
2014-11-25Add incoming packet async handling engine to queue some inbound udp async ↵Justin Clark-Casey (justincc)4-12/+394
requests. This is to reduce the potential for overload of the threadpool if there are many simultaneous requets in high concurrency situations. Currently only applied to AvatarProperties and GenericMessage requests.
2014-11-25Add missing class from recent commit 69abadeJustin Clark-Casey (justincc)1-0/+327
2014-11-25Add "show threadpool calls active" console debug command.Justin Clark-Casey (justincc)3-8/+73
This shows named threadpool calls (excluding timer and network calls) that are currently queued or running. Also shows total of labelled and any anonymous calls.
2014-11-25Add naive implementation of controlled incoming HG attachments to manage load.Justin Clark-Casey (justincc)4-79/+121
Instead of processing all incoming attachment scene object concurrently, process them consecutively to eliminate potential overload from this source. This is a naive implementation because it does not currently account for slow foreign asset services. Although it may take longer, this approach may also improve attachment visibility for HG avatars since the scene object is now always added to the scene after receiving assets from the foreign service and not before.
2014-11-25Label all threadpool calls being made in core OpenSimulator. This is to add ↵Justin Clark-Casey (justincc)30-65/+103
problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
2014-11-25Add "show threadpool calls" command to show count of all labelled ↵Justin Clark-Casey (justincc)2-1/+36
smartthreadpool calls
2014-11-25Just for now, don't alert the user or log if we couldn't change their ↵Justin Clark-Casey (justincc)2-3/+3
server-side preferences due to no e-mail address being sent. This is to avoid user confusion in the oscc rehearsal as they are often not aware that this fails because no e-mail is set. Also may be failing in the hypergrid case, though this may also be a config issue. This is meant as a temporary solution.
2014-11-25Stop Mono 3.2.8 from binding a UDP socket to a port already in use.Justin Clark-Casey (justincc)1-0/+6
At least on Mono 3.2.8 (but not under Windows), one can bind multiple UDP sockets to the same port by default. Different simulators cannot demultiplex each other's messages, so a set of confusing non-obvious errors arise if this occurs. This change prevents such multiple binding.
2014-11-25On pCampbot, if we add the none (n) behaviour then make it actually stop any ↵Justin Clark-Casey (justincc)1-0/+3
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-11-25Add "wearables check" console commandJustin Clark-Casey (justincc)2-73/+245
This checks that all the wearable assets and any assets for a given logged in avatar exist in the asset service
2014-11-25Add "wearables show" console command.Justin Clark-Casey (justincc)1-3/+97
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-11-25Fix recent regression where adaptive throttles stopped adjusting.Justin Clark-Casey (justincc)3-49/+61
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)5-53/+82
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-25minor: In "show client stats" command, properly handle the case where a ↵Justin Clark-Casey (justincc)1-1/+3
client has made no AgentUpdate requests (as is the case with agents that have only even been child) rather than throwing an exception
2014-11-25minor: Correct letter accidentally added to copyright notice on top of ↵Justin Clark-Casey (justincc)1-1/+1
Scene.cs (almost five years ago!)
2014-11-25In Scene.AddNewAgent(), avoid a situation where an exception can result in a ↵Justin Clark-Casey (justincc)1-11/+23
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-11-25For now, send all non-full terse updates for ones own avatar directly to the ↵Justin Clark-Casey (justincc)2-4/+27
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-11-25Add "debug lludp throttles get/set request" and get currentJustin Clark-Casey (justincc)1-0/+26
This allows one to set the requested throttle (which normally comes from the client) as opposed to the max.
2014-11-25Change the word order of some debug lludp settings for readabilityJustin Clark-Casey (justincc)1-15/+15
On server, scene-throttle-max becomes max-scene-throttle and likewise max-new-client-throttle On clients, throttle-max becomes max
2014-11-25Add "debug lludp get/set new-client-throttle-max" to allow default new ↵Justin Clark-Casey (justincc)1-8/+25
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-11-25Add "debug lludp get" command which currently just shows scene-throttle-max ↵Justin Clark-Casey (justincc)1-0/+25
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-11-25Add some more llGiveInventory() regression testsJustin Clark-Casey (justincc)1-48/+1
2014-11-25When inserting missing CreatorData in the HGAssetMapper, do the rewrite on a ↵Justin Clark-Casey (justincc)2-31/+185
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-11-25Add regression test TestPostAssetRewrite() to check results of ↵Justin Clark-Casey (justincc)1-0/+84
HGAssetMapper.Post() object asset rewriting,
2014-11-25If an exception makes it to the top of a JobEngine request, catch and log ↵Justin Clark-Casey (justincc)1-1/+10
instead of letting it terminate the simulator...
2014-11-25Allow GetMesh capability to be served directly by a server like GetTextureJustin Clark-Casey (justincc)3-58/+46
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-11-25Start JobEngine by default in simulator for now.Justin Clark-Casey (justincc)1-0/+2
2014-11-25If JobEngine is active, then use it to copy/rez attachments for an avatar ↵Justin Clark-Casey (justincc)1-22/+62
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-11-25minor: be consistent about reporting errors out of HttpServerBaseJustin Clark-Casey (justincc)1-11/+13
2014-11-25If the port entry in [Network] for a server is missing, then actually tell ↵Justin Clark-Casey (justincc)1-7/+8
the user that's the problem rather than simply exiting silently. Also exit with Environment.Exit(), not by aborting the thread.
2014-11-25Add an IConfigSource constructor to HGAssetBroker so that it can be ↵Justin Clark-Casey (justincc)1-0/+7
instantiated directly for potentially handling some capabilities directly in services with HG active
2014-11-25Fix an issue where specifying both max client and server outgoing UDP ↵Justin Clark-Casey (justincc)8-73/+287
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-25Use automatic properties for Parent and TotalDripRequest in TokenBucket to ↵Justin Clark-Casey (justincc)1-32/+21
make code analysis easier. No functional change.
2014-11-25Remove the unnecessary intermediate total token bucket.Justin Clark-Casey (justincc)2-15/+3
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-11-25minor: remove warnings from unused fields in LocalGridServicesConnectorJustin Clark-Casey (justincc)1-2/+2
2014-11-25minor: Remove unused field from EntityTransferModuleJustin Clark-Casey (justincc)1-2/+0
2014-11-25minor: remove compiler warning from unused field in SimulatorFeaturesModuleJustin Clark-Casey (justincc)1-2/+2
2014-11-25minor: resolve warnings from unused fields in XBakesGet and Post handlersJustin Clark-Casey (justincc)2-6/+3
2014-11-25Remove compiler warning from UserProfilesHandlersJustin Clark-Casey (justincc)1-2/+1
2014-11-25minor: remove warning in BasicHttpAuthentication by commenting out unused ↵Justin Clark-Casey (justincc)1-2/+2
remove_me parameter (which looks like it might still be potentially useful for logging)
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.