Commit Graph

36 Commits (680194deaf7a35caaa629abc16e886d71baff636)

Author SHA1 Message Date
Don Kjer 7866356d77 Merge viewer-release => sunshine-internal 2013-10-29 13:20:18 +00:00
Oz Linden 9c313aea13 merge changes for DRTVWR-336 2013-10-15 17:47:37 -04:00
Brad Payne (Vir Linden) e6a68e1f09 merge 2013-09-10 15:30:13 -04:00
Brad Payne (Vir Linden) 144eb1912d merge 2013-09-04 13:41:51 -04:00
Oz Linden a359d9d80c merge changes for 3.6.4-release 2013-08-27 10:37:02 -04:00
Oz Linden a4e7444985 correct merge error in llupdatechecker.cpp 2013-08-26 16:43:03 -04:00
Oz Linden 7ca10e5161 merge changes for 3.6.4-release 2013-08-26 15:14:12 -04:00
Oz Linden d0432d4d4c CHOP-975: Remove fallback to v1.0 update query when the v1.1 gets a 404 response 2013-07-30 11:53:47 -04:00
Oz Linden 34c77159f7 CHOP-963: Make update service query url depend on the grid rather than settings 2013-07-09 08:39:22 -07:00
Geenz 0af636e632 Merged with viewer-release 2013-06-17 04:39:47 -04:00
Brad Payne (Vir Linden) b0303445f1 more merge fixing 2013-05-21 16:56:45 -04:00
Brad Payne (Vir Linden) a04a706c1b merge 2013-05-21 16:18:48 -04:00
Geenz 3779e51bfc Merged with https://bitbucket.org/lindenlab/viewer-beta 2013-05-13 22:22:51 -04:00
Oz Linden fc4a6431c9 CHOP-942: fix crash if update check times out 2013-05-13 16:28:50 -04:00
Oz Linden 3bb708d706 merge up to latest viewer-development for merge to 3.5.2 2013-04-19 14:42:56 -04:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Don Kjer f945415210 Large changes to the LLCurl::Responder API, as well as pulling in some changes to common libraries from the server codebase:
* Additional error checking in http handlers.
* Uniform log spam for http errors.
* Switch to using constants for http heads and status codes.
* Fixed bugs in incorrectly checking if parsing LLSD xml resulted in an error.
* Reduced spam regarding LLSD parsing errors in the default completedRaw http handler.  It should not longer be necessary to short-circuit completedRaw to avoid spam.
* Ported over a few bug fixes from the server code.
* Switch mode http status codes to use S32 instead of U32.
* Ported LLSD::asStringRef from server code; avoids copying strings all over the place.
* Ported server change to LLSD::asBinary; this always returns a reference now instead of copying the entire binary blob.
* Ported server pretty notation format (and pretty binary format) to llsd serialization.

* The new LLCurl::Responder API no longer has two error handlers to choose from.  Overriding the following methods have been deprecated:
** error - use httpFailure
** errorWithContent - use httpFailure
** result - use httpSuccess
** completed - use httpCompleted
** completedHeader - no longer necessary; call getResponseHeaders() from a completion method to obtain these headers.

* In order to 'catch' a completed http request, override one of these methods:
** httpSuccess - Called for any 2xx status code.
** httpFailure - Called for any non-2xx status code.
** httpComplete - Called for all status codes.  Default implementation is to call either httpSuccess or httpFailure.
* It is recommended to keep these methods protected/private in order to avoid triggering of these methods without using a 'push' method (see below).

* Uniform error handling should followed whenever possible by calling a variant of this during httpFailure:
** llwarns << dumpResponse() << llendl;
* Be sure to include LOG_CLASS(your_class_name) in your class in order for the log entry to give more context.

* In order to 'push' a result into the responder, you should no longer call error, errorWithContent, result, or completed.
* Nor should you directly call httpSuccess/Failure/Completed (unless passing a message up to a parent class).
* Instead, you can set the internal content of a responder and trigger a corresponding method using the following methods:
** successResult - Sets results and calls httpSuccess
** failureResult - Sets results and calls httpFailure
** completedResult - Sets results and calls httpCompleted

* To obtain information about a the response from a reponder method, use the following getters:
** getStatus - HTTP status code
** getReason - Reason string
** getContent - Content (Parsed body LLSD)
** getResponseHeaders - Response Headers (LLSD map)
** getHTTPMethod - HTTP method of the request
** getURL - URL of the request

* It is still possible to override completeRaw if you want to manipulate data directly out of LLPumpIO.

* See indra/llmessage/llcurl.h for more information.
2013-03-13 06:26:25 +00:00
Graham Madarasz (Graham Linden) 98e02a5d76 Merge new boost and add OS X 10.8 mods 2013-02-22 09:49:58 -08:00
Oz Linden c17db85e73 add platform and platform version to login request parameters for new version manager query 2013-03-27 13:20:48 -04:00
Oz Linden 8154621527 log any error code and text received as an llsd body in a failure response 2013-03-26 18:01:20 -04:00
Oz Linden ce73cc392c cosmetic logging fix 2013-03-06 15:50:54 -05:00
Oz Linden 1676dae754 remove old hack for legacy mac updates (no system that needed that will run this version anyway) 2013-03-05 16:47:03 -05:00
Oz Linden 49ed1a4e32 finish changes to update handling, including notices of channel changes 2013-02-27 17:40:39 -05:00
Oz Linden cf1019859d add use of v1.1 update request protocol, with fallback to v1.0 2013-02-21 16:47:52 -05:00
Dave Parks 374f20edf0 Fix non-thread-safe refcounting of LLHTTPClient::Responder and fix out-of-order deletion of LLTextureFetch on shutdown 2012-10-03 14:30:21 -05:00
Aura Linden b0c683344f 10.5 macs will begin looking for mac_legacy rather than mac 2012-08-15 12:49:42 -07: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
Andrew A. de Laix 191e164a50 some better error handling. 2010-11-04 15:49:19 -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
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
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