aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-07-25Revert "Write UDP statistics to the log, not just the console (e.g., "show ↵Justin Clark-Casey (justincc)1-22/+31
queues")" Fixes http://opensimulator.org/mantis/view.php?id=7280 It can't be done this way because the stats data needs to show up on the console at all log levels, not just debug. But this means setting it to log at fatal, which is not appropriate for this stuff in the log. I understand the desire but this has to be done some other way, perhaps by (yet another) config parameter. Also, this was already being done with the ClientStatsReport but that also should be done in another way, I think. This reverts commit 5d534127663899cd5592c865b1d00855fce25854.
2014-07-21minor: Limit processor related stats to 3 decimal places instead of all the ↵Justin Clark-Casey (justincc)1-4/+4
places. Easier to read and analyze, and probably still too much detail (1 dp would probably be fine)
2014-07-21Fix CPU processor use reporting on Mono.Justin Clark-Casey (justincc)1-10/+4
Despite the comments in the code, it appears that the issue where the .NET performance counter was wrongly idle time time on Mono was fixed in 2009. https://bugzilla.novell.com/show_bug.cgi?id=468625 Which means that the workaround is no longer necessary and produces bad results instead.
2014-07-21Don't append attachments multiple timesOren Hurvitz1-0/+6
2014-07-21Log RestClient requests similarly to WebClient (e.g, "debug http all 6" logs ↵Oren Hurvitz2-7/+31
the entire request and response)
2014-07-21In "show throttles", show the maximum drip rate. This shows whether a client ↵Oren Hurvitz1-0/+1
is being throttled due to past poor performance.
2014-07-21Write UDP statistics to the log, not just the console (e.g., "show queues")Oren Hurvitz1-31/+22
2014-07-21Better logging of threadpool activity in Overload mode: if we didn't log ↵Oren Hurvitz1-1/+7
"Queue threadfunc" for a particular thread then don't log "Run threadfunc" or "End threadfunc" for that thread either.
2014-07-21Close streams immediately when we finish using themOren Hurvitz7-137/+164
2014-07-19minor: remove long unused RegionInfo.ignoreIncomingConfigurationJustin Clark-Casey (justincc)1-5/+0
2014-07-19minor: remove long unused RegionInfo.commFailTFJustin Clark-Casey (justincc)1-1/+0
2014-07-18minor: add method doc to ICommands.HasCommand()Justin Clark-Casey (justincc)1-0/+5
2014-07-18Add ICommands.HasCommand() method so that we can detect whether a command ↵Justin Clark-Casey (justincc)3-17/+36
has already been registered without needing to also run it
2014-07-14Use thread-safe version of .NET Random as the SDK class is not thread-safe.Justin Clark-Casey (justincc)2-1/+73
As per http://msdn.microsoft.com/en-us/library/system.random%28v=vs.100%29.aspx, the .NET Random class is not thread-safe. If called by multiple threads at once, methods may return 0. Except for llRand(), other OpenSimulator code did not lock before calling a shared Random instance. This commit adds a ThreadSafeRandom class that extends Random but does internal locking so that it is thread-safe. This change is invisible to existing callers and the explicit locking in the llFrand() implementation is now redundant.
2014-07-09Turn RestClient.Request() logging down the debug and comment out for now.Justin Clark-Casey (justincc)1-5/+5
2014-07-08Fix issue with running "stats record start|stop" console commandJustin Clark-Casey (justincc)1-4/+4
In commit e6080a38 (Wed Mar 19 00:29:36 2014) I renamed this from "debug stats record start|stop" Unfortunately, I didn't do this fully so before this commit "stats record start|stop" will report a usage failure with the old debug text. Unfortunately this is in the 0.8 release. The workaround is to repeat the last command twice (e.g. "stats record start start")
2014-07-02Actually call Close() for shared region modules when the simulator is being ↵Justin Clark-Casey (justincc)2-2/+13
shutdown. Adds regression test for this case.
2014-06-17Change assembly versions to 0.8.1Justin Clark-Casey (justincc)9-9/+9
2014-06-17Update dev version to 0.8.1Justin Clark-Casey (justincc)1-1/+1
2014-06-13Add [Startup]LogShowStatsSeconds=n parameter which controls the intervalRobert Adams1-2/+12
that simulator statistics is output to the console. Setting to zero turns stats logging off.
2014-06-10Add rc3 flavour optionJustin Clark-Casey (justincc)1-0/+1
2014-06-01Correct minor bug regarding packing of estate bansDiva Canto1-12/+19
2014-06-01Fixed a few things pertaining to interfacing with the estate service. ↵Diva Canto2-6/+144
Specifically, StoreEstateSettings was not being used anywhere; instead EstatSetting.Save was being called, but that method is a trigger to the DB-layer code directly, which, besides being wrong, was making it impossible to replace the service with a remote connector. Also added more packing/unpacking code.
2014-05-31Fix a bug where estate not found would result in a dummy estate record with ↵Diva Canto1-0/+19
erroneous information. Also, added conversion of EstateSettings from/to key-value pairs in preparation for robust net work connectors.
2014-05-30Add a 0 parameter overload for RestClient.Request() for use when no auth is ↵dahlia1-0/+8
required. This preserves API compatibility for external modules using this function.
2014-05-30Fix bug where setting a parcel in a varregion for sale would make sale ↵Justin Clark-Casey (justincc)1-0/+21
bitmap generation in WorldMapModule throw an exception on next startup. This commit replaces the hardcoded region sizes in WorldMapModule.GenerateOverlay() with numbers pulled from m_scene.RegionInfo
2014-05-26When saving an OAR in "Publish" mode, also discard Group informationOren Hurvitz2-10/+11
2014-05-23Adds optional HTTP Basic Authentication to Robust service connectors.Diva Canto6-9/+231
2014-05-23Compile the regex that extract categories for colourization just once rather ↵Justin Clark-Casey (justincc)1-5/+7
than on every single log. Compiling every time is unnecessary since Regex is thread-safe.
2014-05-23Allow console output to be multiline by making colourization regex ↵Justin Clark-Casey (justincc)1-1/+1
RegexOptions.SingleLine
2014-05-22Store the Teleport Flags in the Circuit. This doesn't seem to be necessary, ↵Oren Hurvitz1-0/+2
because everything has worked so far, but it's the right thing to do.
2014-05-19Better error-handling and logging in case User Profile requests failOren Hurvitz1-12/+12
2014-05-13Fix behaviour change in recent commit bbc1dc6 so that ↵Justin Clark-Casey (justincc)1-5/+10
SynchronousRestObjectRequester.MakeRequest() calls with no timeout specified use the default HttpWebRequest timeout as previously. I mistakenly thought that that default request timeout was inifite rather than 100 seconds, restoring previously behaviour. As per http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.timeout%28v=vs.100%29.aspx Relates to http://opensimulator.org/mantis/view.php?id=7165
2014-05-12Replace existing 0 timeout in internal overloaded ↵Justin Clark-Casey (justincc)1-3/+4
SynchronousRestObjectRequester.MakeRequest() methods with proper Timeout.Infinite (-1) instead. Triggered by recent faf9ba53 though this was wrong in the code before, it's just that we didn't actually try to set the timeout given.
2014-05-12minor: Add method doc to SynchronousRestObjectRequester.MakeRequest() methodsJustin Clark-Casey (justincc)1-5/+27
2014-05-12In SynchronousRestObjectRequester.MakeRequest<TRequest, TResponse>(string ↵Justin Clark-Casey (justincc)1-0/+2
verb, string requestUrl, TRequest obj, int pTimeout, int maxConnections) actually set timeout on WebRequest if given. Previously, we were doing nothing with this parameter. No effect on current code since none of the 6 callers attempt to use the timeout.
2014-05-06- When sending the "My Suitcase" folder to the client, always claim it has ↵Oren Hurvitz1-0/+4
Folder Type 8. (Previously we had used Folder Type -1 in one place, and LLClientView didn't even bother changing Folder Type 100 to anything else.)
2014-04-30minor: Use Vector2.Zero constant and only set in condition branch where it ↵Justin Clark-Casey (justincc)1-1/+2
was missing in TryParseConsole2DVector(). xbuild still compiles.
2014-04-30Assign value to 'vector' to fix building under xbuild and MonodevelopBlueWall1-0/+1
2014-04-30Add "terrain show" console command which outputs terrain height for a given ↵Justin Clark-Casey (justincc)1-13/+65
region co-ordinate. For debug purposes.
2014-04-29Improved HTTP loggingOren Hurvitz2-4/+3
2014-04-25Fix issue where terrain height values > 327 caused chaotic spiked terrain.Justin Clark-Casey (justincc)1-17/+17
Per http://wiki.secondlife.com/wiki/Tips_for_Creating_Heightfields_and_Details_on_Terrain_RAW_Files#Notes_for_Creating_Height_Field_Maps_for_Second_Life terrain heights up to 508 are possible on the LL grid (and were available on previous releases of OpenSimulator). The obvious way to allow both this and equivalent -z values, is to rewiden the internal terrain height storage from short to int. The memory tradeoff is most noticeable on the maximum 8192x8192 var region (equiv to 1024 normal regions), where it adds 128mb to resident use (128k on a normal region) This is still better than the double used in previous releases. This does not affect physics or data storage since they already use float and double respectively. This may not be the final solution if we actually want to sacrifice -z, >327 or something else. Relates to http://opensimulator.org/mantis/view.php?id=7076
2014-04-25Restore overload mode accidentally disabled in a prior commit. Add a newMelanie1-2/+4
config option, LogOverloads, to log when a thread pool overload occurs. This option defaults to "True" because the logging data is useful for diagnosing threading issues.
2014-04-24- Created a standard function to send XML-RPC requests, which logs them like ↵Oren Hurvitz2-75/+139
we do for other types of HTTP activity. - Changed OpenProfileClient to use the new XML-RPC sending function - Improved logging in WebUtil
2014-04-24When sending JSON-RPC calls (for UserProfile), use WebUtil instead of ↵Oren Hurvitz2-110/+89
constructing the HTTP requests manually. This allows the calls to be logged when using "debug http all 6".
2014-04-24Apply logging flag to a spammy message that may have been overlooked.Melanie1-1/+1
No one needs to see every thread launch.....
2014-04-23Eliminated many warningsOren Hurvitz3-1/+8
2014-04-22Changed the maximum asset name and description lengths to constants. Also, ↵Oren Hurvitz1-0/+3
pre-truncate the description of dynamic textures.
2014-04-12Refactor: Rename GetOtherSetting to GetSetting and make SetOtherSetting privateMelanie1-6/+6
2014-04-12Remove the old XML format parsing. Now additional region params can just beMelanie8-1186/+8
added as they are already exposed through an API when using Nini. That will remove the need to always edit RegioInfo just to add a region based setting.