aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules (follow)
Commit message (Collapse)AuthorAgeFilesLines
* If a moap entry has EnableWhiteList but WhiteList == null, then properly ↵Justin Clark-Casey (justincc)2014-12-231-0/+3
| | | | | | | | block the request instead of throwing an exception. Normally, WhiteList is an empty list but from Mantis 7389 it looks like it might sometimes be possible for it to be null (haven't seen this up till now) It looks like failing with an exception instead of properly replying to the request (which comes in via a cap) might be enough, surprisingly, to freeze a viewer until timeout. Part of http://opensimulator.org/mantis/view.php?id=7389 but probably unrelated to the actual issue of that mantis.
* In XBakesModule.Get() use using() to always dispose of RestClient which ↵Justin Clark-Casey (justincc)2014-12-201-31/+35
| | | | disposes the stream rather than disposing the stream directly
* Use using() semantics in XBakesModule to ensure disposable objects are alway ↵Justin Clark-Casey (justincc)2014-12-201-39/+42
| | | | disposed no matter what
* Fix recent regression where a race condition meant SP.MakeRootAgent() would ↵Justin Clark-Casey (justincc)2014-12-171-5/+11
| | | | | | sometimes look to start attachment scripts before ETM.HandleIncomingSceneObject() had added them. Probably a regression since ghosts branch merge on Nov 26 2014
* Add command to reset region's user cacheBlueWall2014-12-161-0/+15
|
* Fix a regression where objects crossing regions in the same simulator (on ↵Justin Clark-Casey (justincc)2014-12-101-0/+7
| | | | | | | | | | their own or as attachments) with AppDomainLoading = false would create the new state in the source region area rather than the dest. This was beause the code was finding the script DLL compiled for the source region as everything is in the same appdomain and using this as the location for the destination script state, etc. This resolves the regression by passing the proper destination separately from the DLL retrieved. Probably a regression since commit d7b92604 (11 July 2014). Added regression test for this case. At least partly addresses http://opensimulator.org/mantis/view.php?id=7278
* refactor: rename IteratingUuidGather.AddAssetUuidToInspect() and ↵Justin Clark-Casey (justincc)2014-12-051-1/+1
| | | | RecordAssetUuids() to AddForInspection() as this properly describes what both of these methods do.
* Make "fache assets" console command more efficient by only updating access ↵Justin Clark-Casey (justincc)2014-12-051-17/+24
| | | | times on each cached asset once, not for every reference.
* refactor: Make IteratingUUIDGatherer take a dictionary in its constructor ↵Justin Clark-Casey (justincc)2014-12-041-3/+3
| | | | like UUIDGatherer, so we can deal with future cases where the dictionary may already be pre-populated.
* If "fcache assets" is executed, don't stop with an exception if there's an ↵Justin Clark-Casey (justincc)2014-12-041-2/+1
| | | | | | access violation if another thread is operating on the file at the same time. Resolves one issue from http://opensimulator.org/mantis/view.php?id=7271
* refactor: breakout flotasm cache last file access time to separate ↵Justin Clark-Casey (justincc)2014-12-041-7/+19
| | | | UpdateFileLastAccessTime() method for imminent reuse.
* Don't worry about checking FlotsamAssetCache.m_CurrentlyWriting when ↵Justin Clark-Casey (justincc)2014-12-041-8/+1
| | | | | | updating access time. The majority of updates won't be for anything currently writing and any sharing exception from an actual clash can be caught and ignored anyway.
* When performing region cross, don't add the velocity to the new position in ↵Justin Clark-Casey (justincc)2014-11-291-1/+2
| | | | ETM.CrossAgentIntoNewRegionMain() since this has already been performed by SP.CheckForBorderCrossing()
* Avoid repeated lag-generating continuous attempts to retrieve HG service ↵Justin Clark-Casey (justincc)2014-11-281-7/+11
| | | | | | | | Urls in UMM if the initial request fails, possibly due to the home URL not being present Instead, the failure information is effectively added to the memory cache (so no persistence over simualtor sessions). A future improvement may be to invalidate negative cache results after some time has passed in case the failure was transient. Looks to resolve http://opensimulator.org/mantis/view.php?id=7382
* Be more explicit again in UMM bad HomeURL message by logging the original ↵Justin Clark-Casey (justincc)2014-11-271-2/+2
| | | | creator data
* Make UMM.AddUser(UUID, string) log message when bad creatorData is given to ↵Justin Clark-Casey (justincc)2014-11-271-4/+8
| | | | reflect its location (UMM not Scene) and add the user name and ID.
* refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)2014-11-2510-14/+14
| | | | | | | | thread and run work in the jobengine from Watchdog to a WorkManager class. This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management. Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget. Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
* Fix bug in HG attachment throttling code where attachments were never rezzed ↵Justin Clark-Casey (justincc)2014-11-251-55/+63
| | | | | | on any teleport within a foreign grid after the first. Bug was introduced in ghosts branch commit 69abade
* When processing incoming attachments via HG, if a request for uuid gathering ↵Justin Clark-Casey (justincc)2014-11-252-25/+102
| | | | | | | 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.
* Introduce an IteratingUuidGatherer where each fetch from the asset service ↵Justin Clark-Casey (justincc)2014-11-251-3/+16
| | | | | | | (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.
* Add incoming packet async handling engine to queue some inbound udp async ↵Justin Clark-Casey (justincc)2014-11-251-1/+1
| | | | | | | 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.
* Add missing class from recent commit 69abadeJustin Clark-Casey (justincc)2014-11-251-0/+327
|
* Add "show threadpool calls active" console debug command.Justin Clark-Casey (justincc)2014-11-251-2/+6
| | | | | 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.
* Add naive implementation of controlled incoming HG attachments to manage load.Justin Clark-Casey (justincc)2014-11-252-27/+117
| | | | | | | 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.
* Label all threadpool calls being made in core OpenSimulator. This is to add ↵Justin Clark-Casey (justincc)2014-11-2511-15/+19
| | | | | | problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
* Just for now, don't alert the user or log if we couldn't change their ↵Justin Clark-Casey (justincc)2014-11-251-2/+2
| | | | | | | | 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.
* When inserting missing CreatorData in the HGAssetMapper, do the rewrite on a ↵Justin Clark-Casey (justincc)2014-11-252-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.
* Add regression test TestPostAssetRewrite() to check results of ↵Justin Clark-Casey (justincc)2014-11-251-0/+84
| | | | HGAssetMapper.Post() object asset rewriting,
* Add an IConfigSource constructor to HGAssetBroker so that it can be ↵Justin Clark-Casey (justincc)2014-11-251-0/+7
| | | | instantiated directly for potentially handling some capabilities directly in services with HG active
* minor: remove warnings from unused fields in LocalGridServicesConnectorJustin Clark-Casey (justincc)2014-11-251-2/+2
|
* minor: Remove unused field from EntityTransferModuleJustin Clark-Casey (justincc)2014-11-251-2/+0
|
* refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)2014-11-2518-18/+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
* Add 'terrain feature' commandDev Random2014-11-194-2/+353
|
* minor: correct console response when setting attachments logging levelJustin Clark-Casey2014-11-101-1/+1
|
* Actually persist a changed console set agent-limit via "region set".Justin Clark-Casey (justincc)2014-10-311-2/+7
| | | | | Unfortunately, it's not currently easy to do this with "max-agent-limit" - this must be separately set as MaxAgents in region config if it's to persist over restarts.
* Add "region set" console command.Justin Clark-Casey (justincc)2014-10-311-1/+73
| | | | | | This current allows one to set two region parameters agent-limit <int> will set the current root agent limit for the region, as also settable through the viewer, though some impose a max setting (e.g. 100). max-agent-limit <int> will set the maximum allowed root agent limit. This can also be set via the MaxAgent parameter in region config.
* Add "region get" command as a synononym for "show region" console command.Justin Clark-Casey (justincc)2014-10-311-0/+9
| | | | This matches existing similar commands and a soon to be added "region set" command.
* Add hypergrid teleporting support to user profiles picksBlueWall2014-10-271-16/+97
|
* Use Scene or IEntityTransferModule directly in HGEntityTransferModule ↵Justin Clark-Casey (justincc)2014-10-081-8/+7
| | | | | | | instead of casting or re-obtaining module. This code originates from when IEntityTransferModule was shared rather than one per region. Now it's one per region we know that callers are always in the same scene as the module.
* HG Restricted appearance checking code is only called when HG teleporting ↵AliciaRaven2014-10-081-0/+8
| | | | via the map but bypassed completely when teleporting via landmarks. This fixes this by including a call when acting on landmarks. Does not affect local grid teleports as flags are checked.
* Don't unnecessarily remove from backup objects that were not directly ↵Justin Clark-Casey (justincc)2014-10-022-5/+18
| | | | | | | attached from the scene. These are never in region backup in the first place since recent 11830c43 Extend regression test to check backup status.
* Do not add attachments to the region scene object backup list.Justin Clark-Casey (justincc)2014-10-021-1/+1
| | | | Attachment persistence is not handled in this way and this just results in a load of busy work until a check in each SOG terminates a backup check for attachments anyway.
* Merge branch 'master' of ssh://opensimulator.org/var/git/opensimDiva Canto2014-09-281-0/+1
|\
| * When a prim is bought through BuySellModule, the click action is not changed ↵AliciaRaven2014-09-271-0/+1
| | | | | | | | | | | | back from buy object. This means that after the object is bought, it still appears as if for sale which can be confusing. This sets it back to touch, the default after sale. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* | Improve on the last commit to InventoryArchiver: put back the original ↵Diva Canto2014-09-284-12/+25
|/ | | | constructor (3rd party modules use it), change order of new parameters to make it more consistent.
* Fix recent regression with llRegionSayTo() started sending messages twice.Justin Clark-Casey (justincc)2014-09-261-8/+2
| | | | | | Addresses http://opensimulator.org/mantis/view.php?id=7330 Fixed by removing chat delivery to avatar from WorldCommModule.DeliverMessageTo(), in common with existing similar methods that only handle deliver to script listeners. Preserves fixes from http://opensimulator.org/mantis/view.php?id=5005
* Make "generate map" console command also trigger upload to maptiles as well ↵Justin Clark-Casey (justincc)2014-09-262-50/+81
| | | | as asset generation without performing tile generation twice.
* Modifications to previous IAR commits to bring them more inline with ↵AliciaRaven2014-09-233-16/+19
| | | | existing OpenSim code conventions. Also include new IAR save switch in console help print out.
* Add an event callback for loading IAR files. The callback for creating them ↵AliciaRaven2014-09-238-47/+135
| | | | already existed but not for loading. This is of interest for use by region modules. Also includes reporting numbers of items saved and items filtered to the completed log printout.
* Change existing IAR save to use UUID for its callback reference instead of ↵AliciaRaven2014-09-235-17/+17
| | | | Guid. This is for uniformity as discussed on IRC.