aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-09-26minor: correct spelling of Initialized in LSC connector version messageJustin Clark-Casey (justincc)1-1/+1
2013-09-26refactor: rename *ChildAgentDataUpdate() methods to *UpdateChildAgent()Justin Clark-Casey (justincc)1-3/+3
verb-noun is consistent with other similar methods
2013-09-04Allow one to specify a DefaultHGRegion flag in [GridService] in order to ↵Justin Clark-Casey (justincc)2-0/+25
allow different default regions for HG and direct grid logins. This requires a new GridService.GetDefaultHypergridRegions() so ROBUST services require updating but not simulators. This method still returns regions flagged with just DefaultRegion after any DefaultHGRegions, so if no DefaultHGRegions are specified then existing configured defaults will still work. Immediate use is for conference where we need to be able to specify different defaults However, this is also generally useful to send experienced HG users to one default location and local users whose specified region fails (e.g. no "home" or "last") to another.
2013-08-02Amend Justin's last commit regarding the new config var ServiceVersion. The ↵Diva Canto1-1/+2
section may not exist at all.
2013-08-02Allow older teleport ConnectorProtocolVersion of "SIMULATION/0.1" to be ↵Justin Clark-Casey (justincc)2-27/+27
manually forced in a new [SimulationService] config setting. This is for testing and debugging purposes to help determine whether a particular issue may be teleport related or not "SIMULATION/0.2" (the newer teleport protocol) remains the default. If the source simulator only implements "SIMULATION/0.1" this will correctly allow fallback to the older protocol. Specifying "SIMULATION/0.1" will force the older, less efficient protocol to always be used.
2013-07-26Fix regression from 056a6ee7 because the RemoteSimulationConnector uses a ↵Justin Clark-Casey (justincc)1-2/+5
copy of the LocalSimulationConnector but never initializes it (hence ServiceVersion was never set)
2013-07-26Fix regression tests relating to agent transfer by making simulator use last ↵Justin Clark-Casey (justincc)1-4/+9
week's SIMULATOR/0.1 protocol for now.
2013-07-24New Teleport protocol (V2), still compatible with V1 and older. (version of ↵Diva Canto1-1/+1
the destination is being checked) In this new protocol, and as committed before, the viewer is not sent EnableSimulator/EstablishChildCommunication for the destination. Instead, it is sent TeleportFinish directly. TeleportFinish, in turn, makes the viewer send a UserCircuitCode packet followed by CompleteMovementIntoRegion packet. These 2 packets tend to occur one after the other almost immediately to the point that when CMIR arrives the client is not even connected yet and that packet is ignored (there might have been some race conditions here before); then the viewer sends CMIR again within 5-8 secs. But the delay between them may be higher in busier regions, which may lead to race conditions. This commit improves the process so there are are no race conditions at the destination. CompleteMovement (triggered by the viewer) waits until Update has been sent from the origin. Update, in turn, waits until there is a *root* scene presence -- so making sure CompleteMovement has run MakeRoot. In other words, there are two threadlets at the destination, one from the viewer and one from the origin region, waiting for each other to do the right thing. That makes it safe to close the agent at the origin upon return of the Update call without having to wait for callback, because we are absolutely sure that the viewer knows it is in th new region. Note also that in the V1 protocol, the destination was getting UseCircuitCode from the viewer twice -- once on EstablishAgentCommunication and then again on TeleportFinish. The second UCC was being ignored, but it shows how we were not following the expected steps...
2013-07-24Further tweaks on TPs: not sending the callback URL and instead waiting ↵Diva Canto1-1/+1
15sec before closing the agent. This seems to be working fairly well. The viewer seems to have an 8 sec delay between UseCircuitCode and CompleteMovement. Also added back the position on UpdateAgent, because it's needed for TPing between neighboring regions.
2013-07-13Guard against unauthorized agent deletes.Diva Canto2-5/+5
2013-07-13Deleted GET agent all around. Not used.Diva Canto2-38/+0
2013-07-09Put guards on a bunch of exception-inducing code, as seen in logs from load ↵Diva Canto1-0/+5
test.
2013-07-06Some more fixes on strange behaviors of Unknown User, esp. related to large ↵Diva Canto1-13/+14
messy inventories and esp. related to kokua
2013-07-06MORE DEBUG. DON"T USE THIS.Diva Canto1-3/+3
2013-06-30Same fix to LocalInventoryServiceConnector.csDiva Canto1-1/+2
2013-06-29More on mantis #6625Diva Canto1-1/+2
2013-06-22Change IsLocalRegion from using region handle to using regionID. This was ↵Diva Canto1-5/+5
affecting UpdateAgent and CloseAgent in cases where the foreign region is on the same coordinates as *some* local region.
2013-06-15Add the standard OpenSimulator copyright notice to the top of InventoryCache.csJustin Clark-Casey (justincc)1-1/+28
2013-06-15Adjust the locking on InventoryCache. Locking for r/w of the ExpiringCache ↵Justin Clark-Casey (justincc)1-14/+23
isn't needed since it's thread safe but r/w of contained dictionaries isn't thread-safe
2013-06-11Uncomment Mic's code and split to create new regression ↵Justin Clark-Casey (justincc)1-23/+41
TestAddTemporaryAsset() and TestAddTemporaryLocalAsset()
2013-06-10Fix test for adding temporary assets. Code for non-local temporary assetsMic Bowman1-0/+20
is there but commented out.
2013-06-10Remove Temporary from use to shortcut asset stores. The Local propertyMic Bowman2-2/+2
differentiates between local & grid storage. The Temporary property just says that which service handles the it, the asset can be safely removed in the future.
2013-06-05Strengthen some assumptions.Diva Canto1-0/+5
2013-05-30UserProfilesBlueWall1-0/+1
UserProfiles for Robust and Standalone. Includes service and connectors for Robust and standalone opensim plus matching region module.
2013-05-16Where this is not already happening, trigger asychoronous calls to ↵Justin Clark-Casey (justincc)1-1/+1
CloseChildAgent() above the LocalSimulationConnector level. This is so that other callers (such as SceneCommunicationService.SendCloseChildAgentConnections() can perform all closes asynchronously without pointlessly firing another thread for local closes). No functional change apart from elimination of unnecessary chaining of new threads.
2013-05-03Fix possible race condition with local region cache if a region was added ↵Justin Clark-Casey (justincc)1-15/+28
after startup.
2013-03-06Add code for testing event queue messages recevied on region cross.Justin Clark-Casey (justincc)1-3/+6
This is currently disabled pending an improvement in the test code to properly add avatars when an event queue module is present.
2013-02-02Stop exceptions being thrown if GenerateMapTiles = false but no static map ↵Justin Clark-Casey (justincc)1-2/+6
tile has been set. Do more informative warn instead.
2012-12-05minor: Fix more compiler warnings in CoreModules tests by properly ↵Justin Clark-Casey (justincc)1-1/+4
overriding OpenSimTestCase.SetUp()
2012-11-24Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)1-2/+1
automatically turns off any logging enabled between tests
2012-11-20If GetAgents() is called with an empty userIDs array then don't bother with ↵Justin Clark-Casey (justincc)1-0/+4
a useless potentially network call on the scene presence service connector. This also eliminates the "[PRESENCE HANDLER]: GetAgents called without required uuids argument" which has started to pop up in the logs when a call is made with an empty uuid array as occasionally happens.
2012-11-20refactor: Move common presence connector code into BasePresenceServiceConnectorJustin Clark-Casey (justincc)4-193/+145
2012-11-13Last 27 modules' directives (service connectors out).Diva Canto26-4/+54
2012-11-12Cleanup on region modules: gave short node id's to all of them.Diva Canto1-1/+1
2012-11-12Remove any mention of IRegionModule from region names and comments to aidMelanie2-6/+6
grepping for remaining uses
2012-09-26Use GridUser properly for foreign users.Diva Canto1-3/+3
2012-09-25TOS module. WARNING: migration in GridUser table.Diva Canto2-5/+54
2012-09-21Minor: may avoid crashes of sims that still don't have this configuration ↵Diva Canto1-1/+1
section.
2012-09-21HG 2.0: added asset import/export policies at the sim too.Diva Canto1-8/+15
2012-09-19Correctly override and call base OpenSimTestCase.SetUp() method in ↵Justin Clark-Casey (justincc)1-3/+5
GridConnectorsTests and ArchiverTests. Remove unrelated compile warning from AttachmentsModuleTests.
2012-09-15Add basic asset connector tests to check behaviour for normal, local and ↵Justin Clark-Casey (justincc)2-2/+141
temporary assets. Make AssetServiceConnector return more useful data on failure, such as what DLL it was trying to load Allow LocalAssetServiceConnector.GetData() to work without a cache present, as works for the other lasc Get* methods.
2012-09-06If reusing dynamic textures, do not reuse small data length textures that ↵Justin Clark-Casey (justincc)1-1/+1
fall below current viewer discard level 2 thresholds. Viewer LL 3.3.4 and before sometimes fail to properly redisplay dynamic textures that have a small data length compared to pixel size when pulled from cache. This appears to happen when the data length is smaller than the estimate discard level 2 size the viewer uses when making this GetTexture request. This commit works around this by always regenerating dynamic textures that fall below this threshold rather than reusing them if ReuseDynamicTextures = true This can be controlled by the [Textures] ReuseDynamicLowDataTextures config setting which defaults to false.
2012-08-20Add --force flag to "kick user" console command to allow bypassing of recent ↵Justin Clark-Casey (justincc)1-1/+1
race condition checks. This is to allow a second attempt to remove an avatar even if "show connections" shows them as already inactive (i.e. close has already been attempted once). You should only attempt --force if a normal kick fails. This is partly for diagnostics as we have seen some connections occasionally remain on lbsa plaza even if they are registered as inactive. This is not a permanent solution and may not work anyway - the ultimate solution is to stop this problem from happening in the first place.
2012-07-25Rename OpenSim.Framework.Statistics to OpenSim.Framework.Monitoring.Justin Clark-Casey (justincc)1-1/+1
This better reflects the long-term purpose of that project and matches Monitoring modules.
2012-07-25Make SceneManager.OnRegionsReadyStatusChange event available.Justin Clark-Casey (justincc)1-6/+1
This is fired when all regions are ready or when at least one region becomes not ready. Recently added EventManager.OnRegionReady becomes OnRegionReadyStatusChange to match OnLoginsEnabledStatusChange
2012-07-18Establish EventManager.OnRegionReady event. This will only be triggerred ↵Justin Clark-Casey (justincc)1-8/+2
once when the region is ready. Switch MapImageServiceModule to use this.
2012-07-18Pass entire scene object in OnLoginsEnabled event rather than just the ↵Justin Clark-Casey (justincc)1-11/+2
region name. This saves listeners from having to re-retrieve the scene from their own lists, which won't work anyway if multiple regions with the same name have been allowed
2012-07-13Remove a callstack print out I accidentally left in 2 commits ago in 9ccb578Justin Clark-Casey (justincc)1-1/+0
2012-07-13Rather than instantiating a UTF8 encoding everywhere when we want to supress ↵Justin Clark-Casey (justincc)1-1/+1
the BOM, use a single Util.UTF8NoBomEncoding. This class is thread-safe (as evidenced by the provision of the system-wide Encoding.UTF8 which does not suppress BOM on output).
2012-07-13Don't cache regions data on the other unused LocalGridServiceConnector that ↵Justin Clark-Casey (justincc)3-17/+25
the module code still sets up even if we're using one directly instantiated from the RemoteGridServiceConnector. Also improves log messages to indicate which regions are sending/receiving various neighbour protocol messages.