Commit Graph

1391 Commits (eb06fba7679704a7870e3d91f2166bf7e63e5641)

Author SHA1 Message Date
Ansariel 1824cb9d82 Merge Firestorm LGPL 2016-11-15 12:17:59 +01:00
Ansariel 83fef5c904 FIRE-20329: Contact Set aliases not displayed on first post 2016-11-08 00:24:45 +01:00
Ansariel 42c77ab5bc Merge Firestorm LGPL 2016-11-04 12:52:13 +01:00
Ansariel b8d1160cd8 Restore original LLMessageSystem HTTP options for OpenSim (0 retries and 60 seconds timeout) 2016-11-01 21:26:35 +01:00
Ansariel 79c0b8a9b5 Merge viewer-bear 2016-10-19 10:56:32 +02:00
Ansariel 6cf4e039c2 Merge Firestorm LGPL 2016-10-19 10:05:20 +02:00
andreykproductengine 9564600206 MAINT-6487 Decreasing delay 2016-10-18 19:57:19 +03:00
Ansariel 477c3f1601 Fix log getting spammed with experience requests from other grids 2016-10-13 10:17:46 +02:00
andreykproductengine b98bc258f2 MAINT-6487 Viewer Objects should not queue too many downloads 2016-10-12 20:18:05 +03:00
Ansariel f1011a1e19 Merge Firestorm LGPL 2016-10-11 21:08:24 +02:00
AndreyL ProductEngine 4617e07b37 Merged in lindenlab/viewer-release 2016-10-10 23:26:58 +03:00
Ansariel 2cd7b679db Merge Firestorm LGPL 2016-10-01 16:24:43 +02:00
Nicky 22adf7c422 Merge. 2016-09-27 11:50:04 +02:00
Nicky d7a0835432 Merge. 2016-09-26 21:12:34 +02:00
Ansariel 620db1dd1e FIRE-20026: Increase timeout for Flickr upload to 5 minutes 2016-09-23 09:38:15 +02:00
Ansariel c13d5c4072 Merge viewer-bear 2016-09-20 11:44:19 +02:00
Andrey Lihatskiy c7f92169e1 Merged in Ansariel/viewer-bear-coro-namefix (pull request #14)
Fix HttpCoroutineAdapter name for clarity
2016-09-16 18:30:37 +03:00
Nat Goodspeed 4d10172d8b MAINT-5011: Catch unhandled exceptions in LLCoros coroutines.
Wrap coroutine call in try/catch in top-level coroutine wrapper function
LLCoros::toplevel(). Distinguish exception classes derived from
LLContinueError (log and continue) from all others (crash with LL_ERRS).

Enhance CRASH_ON_UNHANDLED_EXCEPTIONS() and LOG_UNHANDLED_EXCEPTIONS() macros
to accept a context string to supplement the log message. This lets us replace
many places that called boost::current_exception_diagnostic_information() with
LOG_UNHANDLED_EXCEPTIONS() instead, since the explicit calls were mostly to
log supplemental information.

Provide supplemental information (coroutine name, function parameters) for
some of the previous LOG_UNHANDLED_EXCEPTIONS() calls. This information
duplicates LL_DEBUGS() information at the top of these functions, but in a
typical log file we wouldn't see the LL_DEBUGS() message.

Eliminate a few catch (std::exception e) clauses: the information we get from
boost::current_exception_diagnostic_information() in a catch (...) clause
makes it unnecessary to distinguish.

In a few cases, add a final 'throw;' to a catch (...) clause: having logged
the local context info, propagate the exception to be caught by higher-level
try/catch.

In a couple places, couldn't resist reconciling indentation within a
particular function: tabs where the rest of the function uses tabs, spaces
where the rest of the function uses spaces.

In LLLogin::Impl::loginCoro(), eliminate some confusing comments about an
array of rewritten URIs that date back to a long-deleted implementation.
2016-08-18 17:33:44 -04:00
Nat Goodspeed 993f54f6e9 MAINT-5011: Try to enrich catch (...) logging throughout viewer.
Turns out we have a surprising number of catch (...) clauses in the viewer
code base. If all we currently do is

    LL_ERRS() << "unknown exception" << LL_ENDL;

then call CRASH_ON_UNHANDLED_EXCEPTION() instead. If what we do is

    LL_WARNS() << "unknown exception" << LL_ENDL;

then call LOG_UNHANDLED_EXCEPTION() instead.

Since many places need LOG_UNHANDLED_EXCEPTION() and nobody catches
LLContinueError yet, eliminate LLContinueError& parameter from
LOG_UNHANDLED_EXCEPTION(). This permits us to use the same log message as
CRASH_ON_UNHANDLED_EXCEPTION(), just with a different severity level.

Where a catch (...) clause actually provides contextual information, or makes
an error string, add boost::current_exception_diagnostic_information() to try
to figure out actual exception class and message.
2016-08-17 15:40:03 -04:00
Nat Goodspeed e72bdc9bc5 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2016-08-17 11:41:12 -04:00
Nat Goodspeed 5e9d2f57c8 MAINT-5011: Use LLTHROW() instead of plain BOOST_THROW_EXCEPTION().
A level of preprocessor indirection lets us later change the implementation if
desired.
2016-08-17 11:36:24 -04:00
Ansariel d47f8e1abe Merge viewer-bear 2016-08-10 21:29:01 +02:00
Ansariel 1e521a042c Merge Firestorm LGPL 2016-08-10 21:25:45 +02:00
Ansariel 7976aaa668 Merge Firestorm LGPL 2016-08-10 20:40:20 +02:00
Ansariel 9de9b58013 Add FSCoreHttpUtil to the project 2016-08-06 16:54:22 +02:00
Glenn Glazer dec92ac3f8 MAINT-6585: pull into fork of viewer-neko for pull request 2016-07-27 14:26:48 -07:00
Ansariel Hiller 5e2676994c Fix HttpCoroutineAdapter name for clarity 2016-07-26 19:26:28 +00:00
Ansariel 1b61408c97 Merge firestorm-lgpl-lynx 2016-07-26 19:30:33 +02:00
Ansariel b8f2d2801b Merge Firestorm LGPL 2016-07-26 18:42:13 +02:00
Glenn Glazer 5ab6b73d57 MAINT-6585: redirect elementtree to llbase version 2016-07-21 14:03:19 -07:00
Glenn Glazer 3ea324c1c4 MAINT=6585: migrate from local python libraries to canonical llbase 2016-07-20 11:47:08 -07:00
Nat Goodspeed 9c49a6c91d MAINT-5011: Introduce LLException base class for viewer exceptions.
This also introduces LLContinueError for exceptions which should interrupt
some part of viewer processing (e.g. the current coroutine) but should attempt
to let the viewer session proceed.

Derive all existing viewer exception classes from LLException rather than from
std::runtime_error or std::logic_error.

Use BOOST_THROW_EXCEPTION() rather than plain 'throw' to enrich the thrown
exception with source file, line number and containing function.
2016-07-19 16:25:25 -04:00
Nat Goodspeed b031b1a625 MAINT-5011: Derive remaining exception classes from std::exception.
In particular:
NotImplemented in llhttpnode.cpp
RelocateError in llupdateinstaller.cpp
LLProtectedDataException, LLCertException and subclasses in llsecapi.h

Had to add no-throw destructor overrides to LLCertException and subclasses
because otherwise clang complains that the implicitly-generated destructor's
exception specification is more lax than the base class's.
2016-07-13 10:43:36 -04:00
Ansariel d0ddccdac2 Fix HTTP adapter naming 2016-07-25 11:48:53 +02:00
Ansariel ea28514d3b Merge Firestorm LGPL 2016-07-04 16:10:45 +02:00
Ansariel 54ad513fcb Merge viewer-bear 2016-06-24 11:35:43 +02:00
Ansariel 9e1c533805 Backed out changeset 8db8aca9022a (Remove temporary HttpRequestPumper eventnames from mainloop eventpump) to make room for LL fix 2016-06-24 11:29:45 +02:00
Ansariel c33ccd4754 Merge Firestorm LGPL 2016-06-24 11:28:48 +02:00
Rider Linden c1a96e4320 Merge 2016-06-23 15:08:18 -07:00
Rider Linden d161651cdb MAINT-6521: Allow anonymous connections to bypass the dependency and order tracking. 2016-06-23 15:03:39 -07:00
Ansariel 50a547919f FIRE-10635: Fix crash on settings restore introduced by coroutine merge 2016-06-22 21:35:20 +02:00
Ansariel c43be9d39b Merge viewer-lynx 2016-06-15 10:04:29 +02:00
Rider Linden a3c4d1cd20 Merge MAINT-6486 2016-06-13 09:23:20 -07:00
Rider Linden 1e803a6bd7 MAINT-6486: Be sure that all the script queue functions hit all objects and scripts in those objects. Convert from responders and callbacks to coroutines. 2016-06-10 12:33:39 -07:00
Ansariel fed4e14718 Merge Firestorm LGPL 2016-05-28 15:09:51 +02:00
Nicky 4f99e217d3 Remove temporary HttpRequestPumper eventnames from mainloop eventpump 2016-05-24 18:50:42 +02:00
Ansariel f68896905b Merge Firestorm LGPL 2016-05-23 16:09:09 +02:00
AndreyL ProductEngine b25a22a2c1 Merged in lindenlab/viewer-release 2016-05-19 23:02:37 +03:00
Ansariel 2889c5bf40 Merge viewer-bear 2016-05-09 17:24:00 +02:00
Ansariel a0188a5358 Merge Firestorm LGPL 2016-05-09 12:41:24 +02:00