Commit Graph

69 Commits (d215de3b7d672dcb5da41600c2b5d0abe2cb82ce)

Author SHA1 Message Date
Nat Goodspeed efa9a0f99c Backed out changeset bab1000e1b2d: restore 'selfless' changes 2015-07-10 19:30:10 -04:00
Rider Linden 247eb0c9c3 Backout selfles merge 738255dbbfd679d9e615baab3398e5e345bbb3c5 2015-07-07 19:41:27 +01:00
Nat Goodspeed b262ded7e0 MAINT-5351: Remove 'self' parameter from coroutine functions.
lleventcoro_test.cpp runs clean (as modified for new API), and all the rest
builds clean, but the resulting viewer is as yet untested.
2015-07-01 18:33:29 -04:00
Rider Linden 0d3fb07bfa Remove vestigial httpclient.h include from files that no longer need it. 2015-06-03 16:04:40 -07:00
Rider Linden 3e004ce66e Updated feature manager downloader to coroutine.
Added "raw" coroutine handler (returns raw result as LLSD::Binary) and split out the guts of the get, put, etc methods.
Moved getStatusFromLLSD from HttpCoroHandler into HttpCorutineAdapter
2015-05-11 16:52:02 -07:00
Rider Linden e5c281025d Convert pathfinding api to coro with new LLCore::Http 2015-04-23 13:35:03 -07:00
Brad Payne (Vir Linden) 487ca1bad3 v-r -> s-e merge WIP 2014-05-14 17:50:59 -04:00
Brad Payne (Vir Linden) 7b9708a2e3 sunshine-external merge WIP 2014-05-13 10:02:26 -04:00
Richard Linden e340009fc5 second phase summer cleaning
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-08-09 17:11:19 -07:00
Brad Payne (Vir Linden) a04a706c1b merge 2013-05-21 16:18:48 -04:00
Oz Linden ddd5659f81 merge changes for DRTVWR-294 2013-04-19 10:11:29 -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
Don Kjer 54cdc322b8 Fixing issues with not detecting when LLSD XML parsing fails. Changing most http error handlers to understand LLSD error responses. Fleshing out most http error handler message spam. 2013-03-05 22:05:22 -08:00
Todd Stinson 685a672b74 Cleaning up new files in preparation for merge into viewer-release. 2012-06-28 15:37:55 -07:00
Todd Stinson a818cd4f73 Renaming the rebake navmesh panel class. 2012-06-26 18:22:17 -07:00
Todd Stinson 78910cf301 Updating the header licensing comments. 2012-06-26 18:04:19 -07:00
Todd Stinson c9fea8b43c PATH-718: Disabling the view/test menu in the case of a stubbed llphysicsextensions library. 2012-06-25 18:17:56 -07:00
Todd Stinson 7cc44fb7fe PATH-759: Removing XXX_STINSON_DEBUG_NAVMESH_ZONE ifdefs. 2012-06-22 18:15:56 -07:00
Todd Stinson fb1fa8434a PATH-761: Implementing the new design for the pathfinding view floater. 2012-06-20 19:46:28 -07:00
Todd Stinson 37e6aa609f PATH-723: Pulling in whether the user has access to view the rebake navmesh button or not. 2012-06-19 20:09:35 -07:00
Todd Stinson b98cbe00fe PATH-702: Refining the behavior of the rebuild navmesh button after it is pushed, and removing unused code. 2012-06-19 19:06:25 -07:00
Todd Stinson 37f3a016fc Removing unused methods and members from the pathfinding manager. 2012-06-19 18:29:49 -07:00
Todd Stinson f5a5e687b7 PATH-702: Tying the status of the rebake button to the status of the navmesh for the current region. 2012-06-19 18:13:47 -07:00
Todd Stinson e4aa203881 PATH-702: Positioning the rebake navmesh button to align with the Stand/StopFlying buttons. Also, parenting the buttons to the toolbar UI elements. 2012-06-19 17:20:24 -07:00
prep 6711e6584a path-722: handling the case where region entry or teleporting would cause the rebake button to be drawn ontop of splash screen. 2012-06-19 15:09:22 -04:00
prep eb341068de Path-722: After a successful rebake the rebake navmesh button is reenabled 2012-06-19 10:55:02 -04:00
prep 15d7f3867c Don't display the rebake navmesh button while SL splash screen is up 2012-06-19 10:40:03 -04:00
Todd Stinson b59a82fc8e PATH-705: Creating a path to pull in the state of the current region navmesh without downloading the navmesh binary. 2012-06-18 17:21:42 -07:00
prep 72a2538f74 Fixed bug where rebake navmesh would get drawn ontop of loading screen. 2012-06-15 13:27:38 -04:00
prep f6153ab735 WIP: path-722. Some agent_state_updates come through (god mode), region crossings, cleanup logic is a TBD, etc.. 2012-06-14 16:58:11 -04:00
prep 9767b5a026 Path-722: Reset buttons to default state. 2012-06-13 15:31:44 -04:00
prep 7d5c4d20b9 WIP: path-722. Posting and responders for navmesh rebaking 2012-06-13 13:30:26 -04:00
prep d7b9af3ab3 path-724: xml navmesh rebake button 2012-06-13 11:08:07 -04:00
prep de1e1db960 WIP for path-702. 2012-06-13 10:50:46 -04:00
Todd Stinson 42f3648814 PATH-705: First pass at removing the agent state functionality. WIP -- still need to remove XXX_STINSON_AGENT_STATE_DELETE_ME ifdef'ed code. 2012-06-11 18:59:51 -07:00
Todd Stinson 3108d4d180 PATH-726: Removing the DEPRECATED_ALTER_NAVMESH_OBJECTS_FIELD as the viewer no longer has to support the Premium Wilderness regions on the old server code. 2012-06-11 18:38:06 -07:00
Todd Stinson e738e704b8 PATH-714: Removing the DEPRECATED_UNVERSIONED_NAVMESH as the viewer no longer has to support the Premium Wilderness regions on the old server code. 2012-06-11 17:03:15 -07:00
Todd Stinson b912c27bf4 PATH-711: Implementing Leo's changes for the pathfinding console. 2012-06-11 16:40:53 -07:00
Todd Stinson ff7223fafe PATH-706: Removing enforcement on frozen/unfrozen state from the linksets floater. Also, removing handlers for agent state change. 2012-06-11 14:45:59 -07:00
Todd Stinson 9cac312f57 Backed out changeset: 18b06d44c5a3 2012-06-11 10:55:18 -07:00
Todd Stinson d25c05547e Performing a test regarding the recent failures of our LLHTTPClient::get services. This changeset should be undone. 2012-06-06 19:19:29 -07:00
Todd Stinson 3352a1eac1 Cleaning up some unreferenced headers and classes definitions from previous refactoring. 2012-05-30 19:39:08 -07:00
Todd Stinson 3c2be426e5 First pass at refactoring the pathfinding linksets and pathfinding characters classes to reduce code duplication, as both functionalities were heavily duplicated. 2012-05-30 18:47:12 -07:00
Todd Stinson 84d8b320a2 PATH-580: Ensuring that the characters and linksets capability services are properly deferred requested in the case that a regions capabilities have not been fully received at initial request time. 2012-05-01 14:55:53 -07:00
Todd Stinson 852377c676 Switching the functionality of the linksets and character request handling to no longer return values directly, but rather to report status only through the callbacks. 2012-05-01 14:22:58 -07:00
Todd Stinson 9329217667 PATH-585: Adding an initial notification for when a server-side automatic unfreeze occurs. 2012-04-27 17:08:33 -07:00
Todd Stinson a72034fa42 PATH-580: BUGFIX Adding functionality to detect when the region's capabilities have not yet been loading and deferring requests for the navmesh query until the capabilities are fully loaded. 2012-04-24 19:23:20 -07:00
Todd Stinson 9d22b22d96 PATH-482: BUGFIX Automatically reloading the character and linksets floaters on region crossing. 2012-04-05 15:59:34 -07:00
Todd Stinson 473da43c1b Refactoring the characters floater code. 2012-03-27 19:05:29 -07:00