Commit Graph

362 Commits (6173233fb01e5baff7b089b27c74924b94cc7c03)

Author SHA1 Message Date
Nat Goodspeed c0731c1c05 Add log message if LLProcessLauncher child fails to execv().
On a Posix platform (vfork()/execv() implementation), if for any reason the
execv() failed (e.g. executable not on PATH), the viewer would never know, nor
the user: the vfork() child produced no output, and terminated with rc 0! Add
logging, make child terminate with nonzero rc.
Remove pointless addArgument(const char*) overload: this does nothing for you
that the compiler won't do implicitly.
In llupdateinstaller.cpp, remove pointless c_str() call in addArgument() arg:
we were starting with a std::string, then extracting its c_str(), only to
construct a whole new std::string from it!
2012-01-17 18:55:42 -05:00
Xiaohong Bao f082de03ff fix for SH-2845, SH-2846, SH-2847, SH-2851: curl crashes and out-of-memory crashes. 2012-01-12 16:36:56 -07:00
Dave Parks cfb666e9d9 merge 2011-11-15 17:04:37 -06:00
Brad Payne (Vir Linden) 1f17228145 merge 2011-10-18 16:24:23 -04:00
Brad Payne (Vir Linden) 47a4ce19c7 SH-2515 WIP - changed app name in linux updater, dir name in windows installer 2011-09-30 13:16:29 -04:00
Brad Payne (Vir Linden) 41d9ad5cd3 SH-2515 WIP - changed app name in mac-updater 2011-09-30 11:06:12 -04:00
Xiaohong Bao 749d9ebadc Merge 2011-08-31 10:48:56 -06:00
Oz Linden f0bc8a0f71 convert tabs to spaces where they are forbidden 2011-08-17 12:33:23 -04:00
Xiaohong Bao d951267467 Merge from viewer-development 2011-07-15 12:14:34 -06:00
Nat Goodspeed 7a7a0f0c1b EXP-772: If URIs returned by SRV fail, fall back on original URI. 2011-05-26 17:25:26 -04:00
Dave Parks 8a92612fd9 merge 2011-05-16 12:34:15 -05:00
Dave Parks 93696ac019 merge 2011-05-12 17:39:08 -05:00
Seth ProductEngine e213a36f70 STORM-477 Restored the backed out changeset: b62b260aa04d 2011-05-11 18:12:23 +03:00
Nat Goodspeed 343ffb9d51 Remove Pth library from viewer build.
This library was only needed on the Mac, and only with the OS X 10.4 SDK. As
of October 2010, we no longer build the viewer with that SDK. The 10.5 SDK
we're currently using directly supports the functionality for which we
originally brought in Pth.
2011-05-05 19:23:55 -04:00
Aleric Inglewood ef490e308c Introduces a LLThreadLocalData class that can be
accessed through the static LLThread::tldata().
Currently this object contains two (public) thread-local
objects: a LLAPRRootPool and a LLVolatileAPRPool.

The first is the general memory pool used by this thread
(and this thread alone), while the second is intended
for short lived memory allocations (needed for APR).
The advantages of not mixing those two is that the latter
is used most frequently, and as a result of it's nature
can be destroyed and reconstructed on a "regular" basis.

This patch adds LLAPRPool (completely replacing the old one),
which is a wrapper around apr_pool_t* and has complete
thread-safity checking.

Whenever an apr call requires memory for some resource,
a memory pool in the form of an LLAPRPool object can
be created with the same life-time as this resource;
assuring clean up of the memory no sooner, but also
not much later than the life-time of the resource
that needs the memory.

Many, many function calls and constructors had the
pool parameter simply removed (it is no longer the
concern of the developer, if you don't write code
that actually does an libapr call then you are no
longer bothered with memory pools at all).

However, I kept the notion of short-lived and
long-lived allocations alive (see my remark in
the jira here: https://jira.secondlife.com/browse/STORM-864?focusedCommentId=235356&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-235356
which requires that the LLAPRFile API needs
to allow the user to specify how long they
think a file will stay open. By choosing
'short_lived' as default for the constructor
that immediately opens a file, the number of
instances where this needs to be specified is
drastically reduced however (obviously, any
automatic LLAPRFile is short lived).

***

Addressed Boroondas remarks in https://codereview.secondlife.com/r/99/
regarding (doxygen) comments. This patch effectively only changes comments.

Includes some 'merge' stuff that ended up in llvocache.cpp
(while starting as a bug fix, now only resulting in a cleanup).

***

Added comment 'The use of apr_pool_t is OK here'.

Added this comment on every line where apr_pool_t
is correctly being used.

This should make it easier to spot (future) errors
where someone started to use apr_pool_t; you can
just grep all sources for 'apr_pool_t' and immediately
see where it's being used while LLAPRPool should
have been used.

Note that merging this patch is very easy:
If there are no other uses of apr_pool_t in the code
(one grep) and it compiles, then it will work.

***

Second Merge (needed to remove 'delete mCreationMutex'
from LLImageDecodeThread::~LLImageDecodeThread).

***

Added back #include <apr_pools.h>.

Apparently that is needed on libapr version 1.2.8.,
the version used by Linden Lab, for calls to
apr_queue_*. This is a bug in libapr (we also
include <apr_queue.h>, that is fixed in (at least) 1.3.7.

Note that 1.2.8 is VERY old. Even 1.3.x is old.

***

License fixes (GPL -> LGPL). And typo in comments.
Addresses merov's comments on the review board.

***

Added Merov's compile fixes for windows.
2011-02-05 15:58:07 +01:00
Loren Shih fbc6e5d639 Automated merge up from viewer-development into mesh-development 2011-02-01 11:28:22 -05:00
Oz Linden f0074f1002 merge changes back from beta branch 2011-02-01 07:22:32 -05:00
Andrew A. de Laix 9fa947ef74 a less brain dead fix for CHOP-369 2011-01-24 14:58:10 -08:00
Andrew A. de Laix 14042f631d fix CHOP-369: catch case of synchronous download failure. 2011-01-24 10:54:08 -08:00
Loren Shih 38f4bad925 Automated merge up from viewer-development 2011-01-21 10:36:29 -05:00
Oz Linden 4f3953763d merge changes from viewer-beta 2011-01-20 20:48:16 -05:00
Andrew A. de Laix 8e4d6bb1ac fix CHOP-366, on temporary errors (e.g. version manager returns other than 200) show error dialog instructing the user to manually install the latest viewer. 2011-01-14 12:59:42 -08:00
Merov Linden 804495ad41 STORM-477 : backout changeset 6f5cb303d3e2 2011-01-13 11:15:47 -08:00
Seth ProductEngine 4af9db7b79 STORM-477 FIXED Re-implemented LLDir::getNextFileInDir() as an iterator object.
- Replaced all existing usages of LLDir::getNextFileInDir() with the new directory iterator object.
- Removed platform specific LLDir::getNextFileInDir() implementation.
2011-01-11 19:50:58 +02:00
Loren Shih fdf19a5268 Automated merge up from viewer-development 2011-01-10 11:20:39 -05:00
Oz Linden a4d5e38535 STORM-826 (workaround): correct mixed and dos-style line endings 2011-01-06 11:06:20 -05:00
Loren Shih 5f99331f4a Automated merge up from viewer-development 2010-12-29 13:23:02 -05:00
Andrew A. de Laix 2c68cb2c69 fix windows build? 2010-12-20 10:38:36 -08:00
brad kittenbrink f95effdacf Better fix for CHOP-286 - reenabled bandwidth limits on linux now that we've fixed the freeze. 2010-12-17 15:59:51 -08:00
brad kittenbrink 63dec2a9b9 Temporary workaround for CHOP-286: bandwidth limits freeze the downloader thread on linux 2010-12-17 14:26:55 -08:00
Andrew A. de Laix 3c3c9a0d49 Automated merge with https://bitbucket.org/mani_linden/viewer-development 2010-12-17 12:07:22 -08:00
Andrew A. de Laix 67a543aa6c ich bin stupid; this should actually fix the windows build. 2010-12-17 12:07:09 -08:00
Andrew A. de Laix 6a6757cab4 don't rely on stream cast to bool behavior; use explicit fail call. 2010-12-17 11:35:26 -08:00
Andrew A. de Laix 049815bd52 and don't break other builds. 2010-12-17 10:55:09 -08:00
Andrew A. de Laix b707048fdf fix windows build (suppress warning from lexical_cast) 2010-12-17 10:53:02 -08:00
Andrew A. de Laix 1774489ef8 Vary install failed message depending on whether it was required or not. 2010-12-16 09:34:19 -08:00
Loren Shih ee0055f5af Automated merge up from viewer-development 2010-12-16 11:12:15 -05:00
Oz Linden 33f745b237 pulling fixes back from viewer-beta 2010-12-15 10:12:49 -05:00
brad kittenbrink 3641d012e3 Merge 2010-12-14 16:19:20 -08:00
Andrew A. de Laix 5b5d2c428c Record update version in download marker so it can be recalled if resumed in another viewer session. 2010-12-14 09:54:28 -08:00
brad kittenbrink 4f9e6ff2ff Defensive coding for linux updater script for consistency with alain's work on the mac script.
Should be safer if the user is installing to a path with spaces in it.
2010-12-10 17:27:17 -08:00
Andrew A. de Laix ac2253abc4 fix quoting in script to work with spaces in directory names. 2010-12-10 16:11:16 -08:00
Andrew A. de Laix 8ab943f470 fix working directory in install script and remove dependency on open option --args which is 10.6 only. Also fix erroneous check in process launcher which was mistakenly reporting a failed execution of the new updater script. 2010-12-10 15:41:14 -08:00
Andrew A. de Laix 1924f1bbca no bandwidth limit for required downloads. 2010-12-10 11:26:23 -08:00
Andrew A. de Laix b89b41991e ui improvements to more closely match UX design. 2010-12-10 09:43:01 -08:00
Andrew A. de Laix 3c3683b884 limit dowload bandwidth to 'Maximum bandwidth' setting 2010-12-07 15:41:31 -08:00
Andrew A. de Laix 4d861ef022 push required flag into download data for later use. 2010-12-07 14:32:37 -08:00
brad kittenbrink f705453823 Fix for coding standard violations and build error on windows. 2010-12-03 17:12:35 -08:00
Andrew A. de Laix c767276ce6 expose update available method. 2010-12-02 11:37:26 -08:00
Andrew A. de Laix 765d939956 state change events for updater service. 2010-12-01 15:51:10 -08:00
Andrew A. de Laix 18dbbb4fa4 download progress events. 2010-12-01 14:42:12 -08:00
Loren Shih bfd8efb057 Automated merge up from viewer-development 2010-12-01 10:55:24 -05:00
brad kittenbrink 1664e05527 Attempted fix for CHOP-223: fixed executable permissions on update_install script for mac and linux. 2010-11-29 14:12:56 -08:00
brad kittenbrink b6edd74775 Merged latest lindenlab/viewer-development with mani_linden/viewer-development for bacground updater work. 2010-11-19 12:09:18 -08:00
Mark Palange (Mani) 8c2026d6b7 CHOP-135 Bug fixes. 2010-11-18 21:57:27 -08:00
Mark Palange (Mani) e19ee531ae merge 2010-11-18 17:03:40 -08:00
Mark Palange (Mani) c893c55d8a Fixing bugs discovered in merge with viewer development 2010-11-18 17:03:01 -08:00
Andrew A. de Laix 86e84a1313 conform to coding standard. 2010-11-18 15:40:21 -08:00
Mark Palange (Mani) 6802775bc4 Merge with viewer-development 2010-11-18 15:36:11 -08:00
Andrew A. de Laix 3625a0f236 inform user on failed install--needs proper user dialog ;-) 2010-11-18 13:25:44 -08:00
Nat Goodspeed 0018762228 Dummy out LLUpdateDownloader::cancel() too for testing. 2010-11-18 12:12:44 -05:00
brad kittenbrink 098fa21c4f Work on CHOP-135: Hooking up setting UpdaterServiceActive to functionality. Paired with Mani.
Toggling the setting now calls LLUpdaterService::startChecking() and LLUpdaterService::stopChecking(), which enable and disable the service.
2010-11-17 17:06:21 -08:00
Andrew A. de Laix c212695cd9 post events for dowload success and error. 2010-11-17 16:27:50 -08:00
Mark Palange (Mani) 8e0e5e0bd9 CHOP-203 Deleting the update file after installer run. 2010-11-17 15:20:53 -08:00
Mark Palange (Mani) dd6213abf4 CHOP-209 Added marker creation, fixed updater crash bug 2010-11-16 18:34:58 -08:00
Mark Palange (Mani) 049154de1c Automated merge with http://bitbucket.org/mani_linden/viewer-development 2010-11-16 16:23:49 -08:00
Andrew A. de Laix 74a60346b2 remove downloaded file on error. 2010-11-16 16:22:37 -08:00
Mark Palange (Mani) 23610ad7df merge 2010-11-16 16:21:51 -08:00
Mark Palange (Mani) 13b77e3622 CHOP-179 Linux install uses linux-updater. Rev. by Alain 2010-11-16 16:21:17 -08:00
Andrew A. de Laix ad354324ca clean up installer file after install. 2010-11-16 15:21:35 -08:00
Andrew A. de Laix 64876ea945 better error checking when writing downloaded file. 2010-11-16 09:43:23 -08:00
Andrew A. de Laix f47c42bb10 create marker on error; use /SKIP_DIALOGS option in installer to run without user input. 2010-11-15 14:26:45 -08:00
Andrew A. de Laix a89024fb37 write marker on windows installer fail. 2010-11-15 09:57:00 -08:00
Andrew A. de Laix ec7d36f6cf added mechanism for install scripts to indicate a failed install and for update service to note the failure; modified mac installer to write marker on error. 2010-11-15 09:38:20 -08:00
Andrew A. de Laix 1368a94f01 do not resume or install if current viewer version doesn't match the recorded version which started the process. 2010-11-12 12:23:30 -08:00
Mark Palange (Mani) 0f26013d1d Merge 2010-11-11 19:07:02 -08:00
Andrew A. de Laix 830afa5b27 hacking mac updater to install from local dmg 2010-11-11 16:45:38 -08:00
Andrew A. de Laix 4e22d63352 Add very basic windows install script. 2010-11-11 11:05:46 -08:00
Andrew A. de Laix 6e15957d90 run install script on successful download 2010-11-11 09:40:30 -08:00
Mark Palange (Mani) 4151771584 CHOP-151 Hooked up app exit callback, cleaned up early exit. Rev. by Brad 2010-11-10 19:21:03 -08:00
Andrew A. de Laix 94942671fa fix resume crash. 2010-11-10 15:23:26 -08:00
Andrew A. de Laix dcf4ddacd8 fix race between resume and download check. 2010-11-10 15:15:25 -08:00
Andrew A. de Laix a891cae876 Automated merge with https://bitbucket.org/mani_linden/viewer-development/ 2010-11-10 14:30:20 -08:00
Andrew A. de Laix 41ec2e01dd copy script to temp if needed before installing. 2010-11-10 14:30:11 -08:00
Mark Palange (Mani) 7eed962a62 Merge 2010-11-10 14:28:54 -08:00
Mark Palange (Mani) b2e84d739b CHOP-151 Adding startup updater flow to drive update installation and resume. 2010-11-10 14:26:14 -08:00
Andrew A. de Laix 9d33a548b6 Automated merge with https://bitbucket.org/mani_linden/viewer-development/ 2010-11-10 10:08:20 -08:00
Andrew A. de Laix deaaad5e33 Add dependency to fix viewer manifest exception in build modes other than all. 2010-11-10 10:03:37 -08:00
brad kittenbrink 3493da8c41 Fix for linux eol failures. 2010-11-09 17:42:05 -08:00
Andrew A. de Laix 8c9b707d58 Automated merge with https://bitbucket.org/mani_linden/viewer-development/ 2010-11-09 11:23:44 -08:00
Andrew A. de Laix fdf616c59d beginnings of the update installer (with simple install script for darwin). 2010-11-09 11:23:32 -08:00
Andrew A. de Laix 5da253fdde Shut down thread if viewer closed while downloading; fix problem of download marker path failing to expand correctly because it was happening too early in start up. 2010-11-09 11:16:28 -08:00
Andrew A. de Laix 2cfcdfe2ff Fix some stream bugs that were affecting windows download and validation. 2010-11-09 09:14:50 -08:00
Andrew A. de Laix d681ea89d2 Get rid of intrusive_ptr member to prevent crash on shutdown. 2010-11-08 16:10:54 -08:00
Mark Palange (Mani) e1016b5bc7 Removed refrences to SLPlugin from LLUpdaterService and test. 2010-11-08 09:49:38 -08:00
brad kittenbrink 1a711b3fd5 "Fix" for linux link errors due to library ordering problems on the linker command line. 2010-11-05 18:33:25 -07:00
Andrew A. de Laix 169fe36f69 Automated merge with https://bitbucket.org/mani_linden/viewer-development/ 2010-11-05 16:00:29 -07:00
Andrew A. de Laix 02c362b8cc implement download cancel (untested). 2010-11-05 15:56:33 -07:00
brad kittenbrink a13acfc907 Fixed build error due to unreferenced local variable. 2010-11-05 15:08:27 -07:00
Mark Palange (Mani) 6f7183cd44 Fixed windows build error. 2010-11-05 13:56:36 -07:00
Andrew A. de Laix fbee6e83fb Automated merge with https://bitbucket.org/mani_linden/viewer-development/ 2010-11-05 13:38:09 -07:00
Andrew A. de Laix 9d7cdc17e3 resume feature (untested). 2010-11-05 11:12:54 -07:00
brad kittenbrink 95d39166fa Fix for windows build breakage in teamcity. 2010-11-04 19:11:40 -07:00
Andrew A. de Laix 4d1e45f20f added hash validation of downloaded file. 2010-11-04 17:14:12 -07:00
Andrew A. de Laix 191e164a50 some better error handling. 2010-11-04 15:49:19 -07:00
brad kittenbrink e45ba29576 Fix for linux eol error. 2010-11-04 15:09:10 -07:00
Andrew A. de Laix dfeb7abe5f checker working with v1.0 update protocol. 2010-11-04 14:08:14 -07:00
Andrew A. de Laix 7622ab9249 just barely working udate downloading service; missing little nicities like error checking and sill stuff like that. 2010-11-04 11:33:02 -07:00
Andrew A. de Laix 0f6c3a1678 Merge 2010-11-02 15:59:24 -07:00
Andrew A. de Laix be15180722 start of the downloader service. 2010-11-02 15:59:10 -07:00
Nat Goodspeed 2125bc0bbb On Windows, disable this-used-in-initializer warning. 2010-11-01 15:49:04 -04:00
Andrew A. de Laix 36b8b88153 changes in respone to review comments. 2010-11-01 09:33:30 -07:00
Nat Goodspeed 6c31be1748 Automated merge with https://bitbucket.org/mani_linden/viewer-development 2010-10-29 15:26:43 -04:00
Nat Goodspeed 8bdd994365 Fix #endif SYMBOL (breaks Linux build) 2010-10-29 15:26:33 -04:00
Andrew A. de Laix a2a9161e1b fix quoting of url in version check. 2010-10-29 11:39:07 -07:00
Andrew A. de Laix 609f5bd681 added periodic retry to look for updates 2010-10-29 11:20:54 -07:00
Andrew A. de Laix ca9594af28 shell of the update checker; it will just print a message to the log depending on the result of the check one time. 2010-10-28 16:47:05 -07:00
Mark Palange (Mani) be8c9fc217 CHOP-122 Initializing Facade service in the viewer. Rev. by Brad. 2010-10-27 17:07:31 -07:00
Mark Palange (Mani) 34db27c26f CHOP-122 Mowr work on the llupdater facade... Added LLPluginProcessParent, including mockery for unit tests. Re. by Jenn 2010-10-26 15:00:34 -07:00
Mark Palange (Mani) 0b9cd83642 CHOP-122 Adding stub background updater files to the build. Rev. by brad 2010-10-25 14:53:58 -07:00
Leyla Farazha a4b223248e Merge 2010-09-27 17:54:52 -07:00
Aimee Linden ffae589843 Post-convert merge by convert_monolith.py from /Users/Aimee/Documents/Work/Linden-Lab/Development/viewer/convert/viewer-identity-evolution 2010-09-03 17:41:39 +01:00
Boroondas Gupte 27ec784127 VWR-20891 FIXED missing LL_TEST conditions in indra/viewer_components/login/CMakeLists.txt
(transplanted from 6ea6df364e22ba6f99b18a0e684ba4912f4f7223)
2010-08-29 16:43:08 +02:00
Aaron Terrell (Enus) 334c04ce1a standardizing a couple of stragler test 'suite' names as class name 2010-08-25 00:52:59 -07:00
Oz Linden 06b0d72efa Change license from GPL to LGPL (version 2.1) 2010-08-13 07:24:57 -04:00
Aimee Linden 0bc87df82b Change license on lllogin_test.cpp to allow it to be exported.
Set to viewergpl for now.
2010-08-12 15:06:31 +01:00
Aimee Linden bb2770fc09 Remove dependency on viewer_components/eventhost 2010-08-12 14:56:40 +01:00
Roxie Linden 658ccc3e85 Re-insert backed out SLE checkin so we can fix it 2010-04-07 11:08:04 -07:00
Tofu Linden 0bb3f144c0 Backed out changeset 63b699f90efd 2010-04-07 10:37:07 +01:00
Roxie Linden 6bb43e1369 Automated merge up from viewer 2.0 trunk.
Some llvoiceclient changes duplicated changes that had already been
made in the voice modularization refactor, so the refactor versions
were used.
2010-02-24 17:04:48 -08:00
Nat Goodspeed 7b03037cac EXT-4193: Use different reply pumps for SRV and XMLRPC requests.
This eliminates the timing hole (introduced by EXT-3934 fix) in which a
belated SRV response could confuse the XMLRPC response code.
Extend unit tests to positively drive the bug and validate the fix.
2010-01-12 15:27:01 -05:00
Nat Goodspeed 0f89155e29 EXT-3934: On SRV timeout, don't fail, proceed with original URI. 2010-01-06 10:08:02 -05:00
Mark Palange (Mani) 87f64b2d8d EXT-3550 Fixed messages from login.cgi not being displayed.
Handling message from "indeterminate" state - feeding them to the llprogressview.
Handling showing error message from incomplete login.
2009-12-21 13:48:46 -08:00
Mark Palange (Mani) 18eea99b55 EXT-3536 Bugfix in lllogin.cpp when reading 'indeterminate' repsonse from login.cgi.
Also fixed up lllogin unit test to match the bugfix.
Reviewed by Brad
2009-12-17 17:52:06 -08:00
Mark Palange (Mani) be49b8bed5 EXT-3158 - Removing logging of users password hash from new login code.
Reviewed by Brad
2009-12-08 16:57:45 -08:00
Nat Goodspeed fde12f0204 DEV-43463: use fixed Boost package on Windows 2009-12-04 17:32:09 -05:00
Nat Goodspeed be9480ab77 DEV-43463: skip() instead of commenting out lllogin_tests 2009-12-04 16:38:12 -05:00
Mark Palange (Mani) 5729a0a6a3 Fix to windows build breakages.
Reviewed by Brad
2009-12-03 13:11:35 -08:00
Nat Goodspeed 7b6ddb4106 DEV-43463: Keep LLEventPump's LLStandardSignal alive during post()
Replace LLEventPump's boost::scoped_ptr<LLStandardSignal> with
boost::shared_ptr. Take a local stack copy of that shared_ptr in post()
methods, and invoke the signal through that copy. This guards against scenario
in which LLEventPump gets destroyed during signal invocation. (See Jira for
details.) Re-enable Mani's test case that used to crash.
Introduce ll_template_cast<> to allow a template function to recognize a
parameter of a particular type.
Introduce LLListenerWrapper mechanism to support wrapper objects for
LLEventPump listeners. You instantiate an LLListenerWrapper subclass object
inline in the listen() call (typically with llwrap<>), passing it the real
listener, trusting it to forward the eventual call.
Introduce prototypical LLCoutListener and LLLogListener subclasses for
illustrative and diagnostic purposes. Test that LLLogListener doesn't block
recognizing LLEventTrackable base class bound into wrapped listener.
2009-11-30 12:57:45 -05:00
Mark Palange (Mani) 9054f31f89 Temporary build un breakage - removing broken unit test from build while fixing. 2009-11-12 18:56:55 -08:00
Mark Palange (Mani) f9f2852ff2 DEV-42715 Fixed lllogin SRV request timeout unit test.
Also made SRV config options not persistent.
reviewed by brad
2009-11-12 09:19:32 -08:00
Mark Palange (Mani) 51e3a486c6 Changes to fix an LLERRS caused by SRV request timeout.
Added settings to config SRV request params
Increased timeout to 10 seconds
Changed timeout to generate login failure event instead of an error.
Added unit test to cover SRV failure event.
2009-11-11 14:28:40 -08:00
Mark Palange (Mani) 2b5faa0b9c Changed SRV Request timeout to respond with an event instead of an error 2009-11-09 13:12:43 -08:00
Nat Goodspeed e3a4e3dc10 DEV-40930: Added ["change"] key to login-module status events. Changed
existing event calls to use state as "offline" or "online", with "change"
indicating the reason for this status event. Changed disconnect() to send
state "offline", change "disconnect" -- instead of replaying last auth
failure. Changed unit tests accordingly.
Changed LLLoginInstance::handleLoginEvent() to use LLEventDispatcher to route
calls to handleLoginFailure() et al.
Added LLEventDispatcher::get() to allow retrieving Callable by name and
testing for empty().
2009-10-09 19:42:59 -04:00
Nat Goodspeed ec52e19dd1 DEV-32777, QAR-1619: Disable MSVC Release-build optimization for LLCoros::launchImpl().
This fixes the Release-build crash in lllogin_test.cpp.
2009-09-25 10:55:25 -04:00
Roxanne Skelly ff52ac089f DEV-34822 viewer 1.23 merge
DEV-32649 Merge the diamondware/vivox voice code
-r124876
-r125220
2009-07-15 21:50:42 +00:00
Palmer 8b7f7143d6 Brad's changes to testquit so we can pass executable to run to it.
Switching eventlet to use subrepo.

By Brad, reviewed by Palmer
2009-07-10 14:53:11 -07:00
Roxanne Skelly 9e89819d55 DEV-34822 - merge with 1.23
certificate notification code
-r 118191

ignore-dead-branch
2009-07-08 00:45:17 +00:00
Roxie Linden fe71dd340a Merge giab-viewer-trunk 2497, general merge of more
secapi stuff as well as certificate handling stuff.
Grid manager as well
2010-02-01 15:10:19 -08:00
brad kittenbrink 7c1742ec7d Added hack for fetching eventlet in place of svn:externals. 2009-06-30 19:12:39 -04:00
Nat Goodspeed c5368c6368 Fix remaining Mac build errors 2009-06-25 09:49:24 -04:00
Bryan O'Sullivan 5d7992d249 Switch to new unit test infrastructure 2009-06-22 16:05:57 -07:00
Brad Kittenbrink 8a8edfd98c First pieces of event host module (DEV-31978).
Basically implements the spec nat decribed in the jira.
Test coverage isn't yet complete though.

mostly paired with nat.
2009-06-18 23:42:51 +00:00
Nat Goodspeed ad40d64b0e DEV-32777: tip won't even build on Windows without pacifying MSVC warning 2009-06-17 15:13:48 +00:00
Nat Goodspeed 820d4a20d1 DEV-32777: Use a canonical boost::coroutines::coroutine signature, relying on
boost::bind() to pass any other coroutine arguments. This allows us to remove
the LLCoroBase and LLCoro constructs, directly storing a coroutine object in
our ptr_map. It also allows us to remove the multiple launch() overloads for
multiple arguments. Finally, it lets us move most launch() functionality into
a non-template method.
2009-06-04 16:01:40 +00:00
Nat Goodspeed a3d54c48c6 DEV-32777: When launching login coroutine, instead of binding _2, _3
placeholders and then asking Boost.Coroutine to pass parameters to them,
simply bind the desired values.
2009-06-04 02:37:59 +00:00
Nat Goodspeed 46291bf740 DEV-32777: Make coroutine's top-level function accept value params, not
reference params.
2009-06-04 01:59:31 +00:00
Nat Goodspeed 285613b892 DEV-32777: Introduce LLCoros, an LLSingleton registry of named coroutine
instances. LLCoros::launch() intends to address three issues:
- ownership of coroutine instance
- cleanup of coroutine instance when it terminates
- central place to twiddle MSVC optimizations to bypass DEV-32777 crash.
Initially coded on Mac; will address the third bullet on Windows.
Adapt listenerNameForCoro() to consult LLCoros::getName() if applicable.
Change LLLogin::Impl::connect() to use LLCoros::launch().
LLCoros::getName() relies on patch to boost::coroutines::coroutine::self to
introduce get_id().
2009-06-03 21:38:21 +00:00
Nat Goodspeed 7915162b96 DEV-31892: rev 119315 got lost somewhere along the way?! Reapplying. 2009-05-28 22:53:21 +00:00
Nat Goodspeed c607752a9d DEV-32777: ensure that stack objects listening on persistent LLEventPumps get
properly disconnected when destroyed.
Break out Debug class and associated macros from lleventcoro_test.cpp into test/debug.h.
Add Debug output to lllogin_test.
2009-05-28 21:25:58 +00:00
Nat Goodspeed cb5918df31 Remove silly std::cout debugging output 2009-05-14 20:50:50 +00:00
Nat Goodspeed dc93462991 svn merge -r113003:119136 svn+ssh://svn.lindenlab.com/svn/linden/branches/login-api/login-api-2 svn+ssh://svn.lindenlab.com/svn/linden/branches/login-api/login-api-3 2009-05-11 20:05:46 +00:00