aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
2014-04-12Add per-user checking to PrimLimitsModuleDev Random2-0/+19
Signed-off-by: Melanie <melanie@t-data.com>
2014-04-03Reduced log levels for REST 404 errors to DEBUGOren Hurvitz1-1/+2
2014-04-03Better error messages in RestClientOren Hurvitz1-3/+2
2014-04-02String matching in REST handlers: must allow '-' as a separator, because the ↵Oren Hurvitz1-1/+1
"/map" handler uses it
2014-04-02Better string matching when searching for REST handlers: must match an ↵Oren Hurvitz1-3/+8
entire path component (ending with '/' or a similar character). For example, these should match: "/assets" and "/assets/12345", but these shouldn't match: "/assets" and "/assets_exist".
2014-04-02Fixed last-resort sending of error response (HTTP 500) when an error occurs ↵Oren Hurvitz2-10/+10
while handling a request. The previous code didn't actually send the response, so the caller was stuck until the timeout (100 seconds).
2014-04-02Added assets service method AssetsExist(), which returns whether the given ↵Oren Hurvitz1-0/+50
list of assets exist. This method is used to optimize sending assets with embedded assets: e.g., when a Hypergrid visitor takes an item into the inventory.
2014-03-27Fixed a case where logging an HTTP response failed because the stream was ↵Oren Hurvitz1-23/+28
non-seekable
2014-03-27Log errors in MakeRequest() as INFO, not ERROR. Some communications problems ↵Oren Hurvitz1-2/+2
are benign (e.g., can't send Friend status update to a region that is down), so don't log them as ERROR so soon. We rethrow the exception, so the caller can still decide to log the error as an ERROR. Resolves http://opensimulator.org/mantis/view.php?id=7077
2014-03-26refactor: Actually use MaptileStaticFile in RegionInfo rather than having ↵Justin Clark-Casey (justincc)1-10/+6
both a public field and a get property
2014-03-26- Increased the threadpool timeout to 10 minutesOren Hurvitz1-1/+1
- Changed a few places that launch long-lasting threads to skip the timeout altogether
2014-03-25Use the "X-Content-Encoding" header to indicate gzipped data, because old ↵Oren Hurvitz3-4/+18
OpenSims fail if they get an unknown "Content-Encoding"
2014-03-25Sync code that has moved in development branch with changes in masterBlueWall1-45/+41
2014-03-25Move from UserProfileModule for general availabilityBlueWall1-0/+215
2014-03-25Use the "Content-Encoding" header to indicate gzipped streamsOren Hurvitz3-5/+7
2014-03-25Always throw an exception if MakeRequest (used for HTTP POST) fails. ↵Oren Hurvitz2-21/+12
(Previously many exceptions were ignored) Resolves http://opensimulator.org/mantis/view.php?id=6949
2014-03-25Improved logging of HTTP requestsOren Hurvitz3-49/+165
- MemoryBuffer isn't seekable, so we can't log it. Log the string instead. - Handle compressed streams - Don't attempt to dump binary data. Either don't log it at all (if we know it's binary), or at least convert non-ASCII characters to ASCII. - Log responses to HTTP requests - Use the same log prefix for all of these log messages ("[LOGHTTP]"), to make them easy to see at a glance - Increased the snippet length to 200 (80 doesn't show enough), and add "..." only if the message was actually truncated Resolves http://opensimulator.org/mantis/view.php?id=6949
2014-03-25Fixed unit tests due to changes in the threadpoolOren Hurvitz1-8/+19
2014-03-25Run slow operations in a separate thread, instead of using FireAndForget ↵Oren Hurvitz1-0/+23
(which has a 1-minute timeout) Resolves http://opensimulator.org/mantis/view.php?id=6945
2014-03-25Changed LogThreadPool to have 4 logging levels. Added console command "debug ↵Oren Hurvitz2-19/+78
threadpool level" to set the logging level. Resolves http://opensimulator.org/mantis/view.php?id=6945
2014-03-25Added a watchdog to abort slow threads in the main thread poolOren Hurvitz1-11/+269
If a task in the thread pool hangs then it will permanently take up one of the threads. If this happens repeatedly then the thread pool will become exhausted and OpenSim will fail. This watchdog terminates threads in the thread pool that have been executing for over a minute (which probably means they're hung). Resolves http://opensimulator.org/mantis/view.php?id=6945
2014-03-25LogThreadPool: when the thread is for ProcessPacketMethod, also log the ↵Oren Hurvitz1-3/+12
packet type Resolves http://opensimulator.org/mantis/view.php?id=6945
2014-03-25Refactored DebugFlagsEnumOren Hurvitz1-5/+14
Resolves http://opensimulator.org/mantis/view.php?id=6945
2014-03-25Automatically start logging FireAndForget activity if the threadpool is fullOren Hurvitz1-4/+19
Resolves http://opensimulator.org/mantis/view.php?id=6945
2014-03-25Added debug flag: LogThreadPool. It makes us log every use of the main ↵Oren Hurvitz1-29/+114
threadpool. Resolves http://opensimulator.org/mantis/view.php?id=6945
2014-03-24Refactored: ExternalRepresentationUtils should be the only place where the ↵Oren Hurvitz3-6/+22
"CreatorData" field is calculated, to ensure uniformity Resolves http://opensimulator.org/mantis/view.php?id=6933
2014-03-24When updating the CreatorId of an inventory item, automatically update the ↵Oren Hurvitz1-1/+4
CreatorIdAsUuid field as well Resolves http://opensimulator.org/mantis/view.php?id=6933
2014-03-24Get the full viewer name even if it's (incorrectly) sent in the 'Channel' fieldOren Hurvitz1-0/+32
Recent versions of Firestorm and Singularity have started sending the viewer name in the 'Channel' field, leaving only their version number in the 'Viewer' field. So we need to search both of these fields for the viewer name. This resolves http://opensimulator.org/mantis/view.php?id=6952
2014-03-22Allow Mono Plugin Registry setting for RegionsDev Random1-6/+7
Signed-off-by: Melanie <melanie@t-data.com>
2014-03-21Add monitored thread last update times as stats in "show stats all"Justin Clark-Casey (justincc)1-0/+26
These have the format server.thread.<thread-name>
2014-03-18Allow Region specific static maptiles to be loaded from file.Jak Daniels1-0/+21
2014-03-19Revert "Simplify DoubleQueue to eliminate redundant sempahore work."Justin Clark-Casey (justincc)1-7/+27
This reverts commit 52b7b40034ddbb21d06b11ddc4eb6d766b0f616d. Got the semantics wrong - the sempahore is required so that the blocking thread waits for a signal.
2014-03-19Simplify DoubleQueue to eliminate redundant sempahore work.Justin Clark-Casey (justincc)1-27/+7
Exclusion is already guaranteed by the lock on m_syncRoot. Semaphore could not allow more than one thread in these sections anyway since the underlying SDK structures are not thread-safe.
2014-03-19minor: Make "stats show" an alias for "show stats" command.Justin Clark-Casey (justincc)1-2/+10
2014-03-19Rename "debug stats record" command to "stats record" for consistency. Move ↵Justin Clark-Casey (justincc)1-3/+3
from debug to general command category
2014-03-19Allow a snapshot of stats to be dumped to a file with a "stats save" commandJustin Clark-Casey (justincc)1-3/+46
2014-03-18Add httpserver.<port>.QueuedPollResponses and ↵Justin Clark-Casey (justincc)1-2/+24
httpserver.<port>.ProcessedPollResponses statistics
2014-03-18minor: Correction to description of QueuedPollResponses since this covers ↵Justin Clark-Casey (justincc)1-1/+1
long poll and other 'poll' types
2014-03-18Add httpserver.<port-number>,QueuedPollResponses statJustin Clark-Casey (justincc)1-0/+13
This shows the number pf poll responses queued for processing.
2014-03-18Extend locking in BlockingQueue to cover operations that are not guaranteed ↵Justin Clark-Casey (justincc)1-10/+8
to be thread-safe
2014-03-18Allow "show stats" console command to take a full stat name and display only ↵Justin Clark-Casey (justincc)1-1/+23
that stat. For example, scene.test.RootAgents will show only the RootAgents stat in the scene named "test"
2014-03-18Lock m_syncRoot on DoubleQueue.Count. This is not documented as a ↵Justin Clark-Casey (justincc)1-1/+5
thread-safe operation
2014-03-17Add regression test for http inventory fetch.Justin Clark-Casey (justincc)3-397/+122
Involved some restructuring to allow regression tests to dequeue inventory requests and perform poll responses synchronously rather than async
2014-03-10Change terrain update sending to be triggered by frame tick ratherRobert Adams1-5/+46
than everytime terrain is changed. The TerrainModule now hooks the frame event and, if terrain has changed, sends terrain updates to the clients. This polling pattern replaces the previous push on change pattern and will make it easier to do per client throttling and per scene presence terrain update ordering.