aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Scripting (follow)
Commit message (Collapse)AuthorAgeFilesLines
* varregion: remove scattered use of Constants.RegionSize by having routines ↵Robert Adams2013-10-071-2/+2
| | | | reference RegionInfo.RegionWorldLoc?.
* VarRegion: change RegionInfo storage of region coordinates from regionRobert Adams2013-09-281-2/+2
| | | | | | | | count number to integer world coordinates. Added new methods RegionWorldLoc[XY]. Refactored name of 'RegionLoc*' to 'LegacyRegionLoc*' throughout OpenSim. Kept old 'RegionLoc*' entrypoint to RegionInfo for downward compatability of external region management packages.
* Better error reporting when registering LSL function extensions (comms module).Robert Adams2013-08-081-4/+13
| | | | | | For unknown reasons, a dynamic function signature cannot have more than 5 parameters. Error message now tells you this fact so you can curse MS and then go change your function definitions.
* Comment out debug log lines about script modules comms for now.Justin Clark-Casey (justincc)2013-08-051-2/+2
| | | | If this is an issue, could change log4net config instead to allow re-enablement
* Add request received/handling stats for caps which are served by http poll ↵Justin Clark-Casey (justincc)2013-07-151-2/+4
| | | | | | | handlers. This adds explicit cap poll handler supporting to the Caps classes rather than relying on callers to do the complicated coding. Other refactoring was required to get logic into the right places to support this.
* minor: remove some regression test logging switches accidentally left ↵Justin Clark-Casey (justincc)2013-07-111-1/+1
| | | | uncommented.
* minor: Take out unnecessary clumsy sleep at the end of regression ↵Justin Clark-Casey (justincc)2013-07-111-3/+0
| | | | | | Test404Response(). This wasn't actually necessary in the end but was accidentally left in.
* Fix regression where llHTTPRequests which did not get an OK response ↵Justin Clark-Casey (justincc)2013-07-112-40/+238
| | | | | | | | returned 499 and the exception message in the http_response event rather than the actual response code and body. This was a regression since commit 831e4c3 (Thu Apr 4 00:36:15 2013) This commit also adds a regression test for this case, though this currently only works with Mono This aims to address http://opensimulator.org/mantis/view.php?id=6704
* Supply proper type information for the various types of requestsMelanie2013-06-071-6/+6
|
* Adding Avination's PollService to round out the HTTP inventory changesMelanie2013-06-071-4/+4
|
* minor: fix mono compiler warning in ScriptsHttpRequests.csJustin Clark-Casey (justincc)2013-04-101-1/+0
|
* refactor: Simplify ScriptsHttpRequests.GetNextCompletedRequest to more ↵Justin Clark-Casey (justincc)2013-04-041-10/+4
| | | | simply iterate through pending requests without unnecessary checks.
* Fix bug where outstanding llHTTPRequests for scripts were not being aborted ↵Justin Clark-Casey (justincc)2013-04-041-30/+62
| | | | | | | | | when they were deleted. This was because AsyncCommandManager was handing an item ID to IHttpRequestModule.StopHttpRequest() rather than the expected request ID. This commit also makes the http request asynchronous using BeginGetResponse() rather than doing this by launching a new thread so that we can more safely abort it via HttpWebRequest.Abort() rather than aborting the thread itself. This also renames StopHttpRequest() to StopHttpRequestsForScript() since any outstanding requests are now aborted and/or removed.
* Added missing functionality (mainly custom headers) to llHTTPRequest.Kevin Cozens2013-03-291-9/+64
|
* minor: save some commented out log lines which will be useful again in ↵Justin Clark-Casey (justincc)2013-03-131-0/+5
| | | | future debugging of VectorRenderModule
* Add regression test for llReleaseUrl() (and for llRequestUrl)Justin Clark-Casey (justincc)2013-02-271-9/+16
| | | | Forgot to add file for llRequestUrl() test in commit b8a7c8b
* Make sure we dispose of WebResponse, StreamReader and Stream in various ↵Justin Clark-Casey (justincc)2013-02-271-6/+10
| | | | places where we were not already.
* Add regression test for llRequestUrl()Justin Clark-Casey (justincc)2013-02-261-16/+21
|
* * Handle null check on configs in module startup so that the the code can be ↵teravus2013-02-141-6/+8
| | | | run on 'stop on handled and unhandled null reference exceptions' mode without pausing during startup a bunch of times. I don't think exceptions were really meant for replacing a single if statement...
* Add basic JsonCreateStore() regression testJustin Clark-Casey (justincc)2013-01-251-1/+1
|
* Mantis 6508 llHTTPResponse body is incorrectly interpreted by IETalun2013-01-241-1/+15
| | | | | | | | | This patch html escapes responses going to IE so that they cannot be interpreted as HTML if the response type is "text/plain". This has no effect if the reponse type has been set to "text/html" by osSetContentType Signed-off-by: nebadon <michael@osgrid.org>
* Another 21 modules' directives moved out of .addin.xmlDiva Canto2012-11-131-0/+2
|
* Merge branch 'master' of ssh://opensimulator.org/var/git/opensimDiva Canto2012-11-121-1/+1
|\
| * Update ScriptModuleComms name space to CoreModulesMelanie2012-11-131-1/+1
| |
* | Cleanup on region modules: gave short node id's to all of them.Diva Canto2012-11-121-1/+1
|/
* Fix issues with the DynamicTextureModule and corresponding unit tests.Diva Canto2012-11-113-32/+39
|
* One more module converted: XMLRPCModule. Removed it from the special loading ↵Diva Canto2012-11-111-31/+51
| | | | at start.
* One more module converted: VectorRenderModule.Diva Canto2012-11-111-27/+41
|
* One more module: DynamicTextureModule. Removed it from the special load in ↵Diva Canto2012-11-111-11/+27
| | | | the beginning.
* One more module converted: LoadImageURLModule. Also removed it from its ↵Diva Canto2012-11-111-19/+38
| | | | hard-coded instantiation (I think I understood what the problem was, and that I've done it right).
* One more module converted: ScriptsHttpRequests.Diva Canto2012-11-111-9/+25
|
* One more module converted: EmailModule.Diva Canto2012-11-111-46/+64
|
* document, 80-character width terminal formatting converting comments to ↵SignpostMarv2012-11-101-15/+65
| | | | | | documentation for IDE & doxygen goodness Signed-off-by: Diva Canto <diva@metaverseink.com>
* document & 80-character width terminal formattingSignpostMarv2012-11-101-56/+114
| | | | Signed-off-by: Diva Canto <diva@metaverseink.com>
* Converting WorldCommModule to INonSharedRegionModuleSignpostMarv2012-11-101-11/+25
| | | | Signed-off-by: Diva Canto <diva@metaverseink.com>
* Add a method to query all registered script constants to allow non-XEngineMelanie2012-11-041-0/+16
| | | | script engines to use them.
* refactoring IWorldCommListenerInfo.GetRegexBitfield() method to be a field ↵SignpostMarv2012-10-261-12/+8
| | | | with a private setter
* adding ability for listeners to be filtered by regular expressions and a ↵SignpostMarv2012-10-261-19/+110
| | | | general-purpose function to see if a given string matches a given regex
* Formatting and casing correction in WorldCommModule, trailing new line in ↵SignpostMarv2012-10-261-3/+3
| | | | OSSL to get git diff to not complain
* minor: comment out currently unused logger in DynamicTextureModuleJustin Clark-Casey (justincc)2012-10-191-1/+1
|
* Revert "Added request.Proxy=null everywhere, as discussed in ↵Diva Canto2012-09-303-9/+5
| | | | | | | | http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow." But the patch is here, in case anyone wants to try it. This reverts commit 531edd51d82ecd6a842a2611c99e9919634491ef.
* Added request.Proxy=null everywhere, as discussed in ↵Diva Canto2012-09-303-5/+9
| | | | | | http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow. Thanks R.Gunther (rigun@rigutech.nl) https://lists.berlios.de/pipermail/opensim-users/2012-September/010986.html
* Lock GDI+ portion og VectorRenderModule.GetDrawStringSize() to prevent ↵Justin Clark-Casey (justincc)2012-09-281-6/+11
| | | | | | concurrent thread use provoking mono crashes. Same rationale as commit 13690582.
* Moving ScriptModuleComms into the CoreModules tree.Mic Bowman2012-09-171-0/+367
|
* Add missing DynamicTexture.cs file from last commitJustin Clark-Casey (justincc)2012-09-061-0/+61
|
* If reusing dynamic textures, do not reuse small data length textures that ↵Justin Clark-Casey (justincc)2012-09-064-41/+125
| | | | | | | | | 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.
* If the GetTexture capability receives a request for a range of data beyond ↵Justin Clark-Casey (justincc)2012-09-062-3/+33
| | | | | | | | | | that of an otherwise valid asset, return HTTP PartialContent rather than RequestedRangeNotSatisfiable. This is because recent viewers (3.2.1, 3.3.4) and probably earlier ones using the http GetTexture capability will sometimes make such invalid range requests. This appears to happen if the viewer's estimate of texture sizes at discard levels > 0 (chiefly 2) exceeds the total texture size. I believe this does not normally happen but can occur for dynamic textures with are large but mainly blank. If this happens, returning a RequestedRangeNotSatisfiable will cause the viewer to not render the texture at the final resolution. However, returning a PartialContent (or OK) even with 0 data will allow the viewer to render the final texture.
* Make ReuseDynamicTextures an experimental config setting in [Textures]. ↵Justin Clark-Casey (justincc)2012-08-301-1/+4
| | | | | | | | | | Default is false, as before. If true, this setting reuses dynamically generated textures (i.e. created through osSetDynamicTextureData() and similar OSSL functions) where possible rather than always regenerating them. This results in much quicker updates viewer-side but may bloat the asset cache (though this is fixable). Also, sometimes issue have been seen where dynamic textures do not transfer to the viewer properly (permanently blurry). If this happens and that flag is set then they are not regenerated, the viewer has to clear cache or wait for 24 hours before all cached uuids are invalidated. CUrrently experimental. Default is false, as before.
* If the compile-time DynamicTextureModule.ReuseTextures flag is set, check ↵Justin Clark-Casey (justincc)2012-08-301-43/+59
| | | | metadata still exists for any reused asset in case some other process has removed it from the cache.
* This partially implements the LSL function to set the responseMic Bowman2012-08-291-1/+19
| | | | | | | | type for an HTTP request. Since the "official" LSL function limits the use of the response type, it is implemented as osSetContentType with a string for the content mime type and a threat level of high. With this function you should be able to implement rather functional media-on-a-prim application with much less difficulty.