Commit Graph

33871 Commits (7ff38e34eaea52b4d1b856efa9de685cbdbd28ba)

Author SHA1 Message Date
Rider Linden 7ff38e34ea Update the unit tests to use the new pointer type. 2015-07-08 12:44:57 -07:00
Rider Linden fe5567639d Change HttpOptions::ptr_t to be shared_ptr<> rather than intrusive. 2015-07-08 12:09:36 -07:00
Rider Linden 1138c57f9a Convert LLCore::HttpHeaders to use shared_ptr<> rather than an intrusive_ptr<> for refrence counting. 2015-07-08 10:01:27 -07:00
Rider Linden 6689c92400 Automated merge with bundle:C:\Users\admin\AppData\Local\Temp\0d1ig3y4.ke0 2015-07-07 11:46:44 -07:00
Rider Linden b34163be5e Merge 2015-07-07 11:44:15 -07:00
Rider Linden 247eb0c9c3 Backout selfles merge 738255dbbfd679d9e615baab3398e5e345bbb3c5 2015-07-07 19:41:27 +01:00
Rider Linden d8c02a2838 Apply reverse patch 2015-07-07 19:37:01 +01:00
Rider Linden 4c1d47d4ae Backed out selfless merge 2015-07-07 19:31:34 +01:00
Rider Linden 5a8580f7cb Clean up viewrmenufile into viewrassetuplod 2015-07-07 10:09:55 -07:00
Rider Linden 8487a19df1 Force Boost result_of to use TR1 for tests. 2015-07-06 09:51:05 -07:00
Nat Goodspeed 50a97cd15a Automated merge with ssh://bitbucket.org/rider_linden/maint-4952-v-t-u 2015-07-04 19:58:43 -04:00
Nat Goodspeed 1d2514956f MAINT-5357: Add llcoro::yield() function to yield for one frame. 2015-07-04 19:58:03 -04:00
rider 99aa00293b Remove ambiguous assignment. 2015-07-03 09:39:18 -07:00
Nat Goodspeed d34476359e MAINT-5357: Extract LLErrorEvent to global namespace.
This exception class got inadvertently swept up into the llcoro namespace. Its
LLClassConvention name is intended for use in the global namespace. As there
are no current references, this is a trivial change.
2015-07-03 09:57:02 -04:00
Rider Linden 6ccd8bb612 Temp disable llavatarnamecache integration test for linux 2015-07-02 16:54:19 -07:00
Rider Linden d28c7dd7f6 Forgot to set a Transaction ID 2015-07-02 15:02:40 -07:00
Rider Linden f00cd0ab9f Crash on second add to coproc queue. 2015-07-02 14:39:12 -07:00
Nat Goodspeed f90023fc0b MAINT-5357: Introduce and populate llcoro:: namespace.
To date, the coroutine helper functions in lleventcoro.h have been in the
global namespace. Migrate them into llcoro namespace, and fix references.
Specifically, LLVoidListener => llcoro::VoidListener, and voidlistener(),
postAndWait(), both waitForEventOn(), postAndWait2(), errorException() and
errorLog() have been moved into llcoro.
Also migrate new LLCoros::get_self() and Suspending to llcoro:: namespace.
While at it, I realized that -- having converted several lleventcoro.h
functions from templates (for arbitrary 'self' parameter type) to ordinary
functions, having moved them from lleventcoro.h to lleventcoro.cpp, we can now
migrate their helpers from lleventcoro.h to lleventcoro.cpp as well. This
eliminates the need for the LLEventDetail namespace; the relevant helpers are
now in an anonymous namespace in the .cpp file: listenerNameForCoro(),
storeToLLSDPath(), WaitForEventOnHelper and wfeoh().
2015-07-02 17:00:32 -04:00
Rider Linden d785ec312b Merge 2015-07-02 09:22:05 -07:00
Rider Linden f8a7eda55b Adjusting uploadinfo object for expansion.
Commit is prelim to allow merge from selfless.
2015-07-02 09:17:48 -07:00
Nat Goodspeed 2a29dbc482 MAINT-5351: Reorder llmessage test libraries to make Linux happy.
Both BOOST_CONTEXT_LIBRARY and BOOST_COROUTINE_LIBRARY were mentioned. But as
BOOST_COROUTINE_LIBRARY depends on BOOST_CONTEXT_LIBRARY, they must be
mentioned in that order for Linux to successfully link the test programs.
2015-07-01 19:23:08 -04:00
Nat Goodspeed 7eaee4fde7 MAINT-5351: Reorganize lleventcoro_test.cpp to be more readable.
Each test<n>() method invokes a function from earlier in the source. It's much
better if each of those functions immediately precedes the test that invokes it.
2015-07-01 19:14:24 -04: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
Nat Goodspeed 41dff76327 MAINT-5351: Remove Boost Preprocessor headers from llcoros.h.
These were used in a former iteration (when we explicitly forwarded
parameters), but are no longer needed.
2015-07-01 14:04:23 -04:00
Nat Goodspeed b4547c6594 Automated merge with ssh://bitbucket.org/rider_linden/maint-4952-v-t-u 2015-07-01 12:51:21 -04:00
Nat Goodspeed 7a76ea1c3a MAINT-4952: Need #include "llhttpclient.h" in llpanelexperiencepicker.cpp. 2015-07-01 12:46:48 -04:00
Rider Linden 1b80e02b0b Added header for httpclient to llpanelexperiencepicker.
(Will be removed when converted to coroutines)
2015-07-01 09:21:12 -07:00
Rider Linden 9f2302bdff Merge 2015-07-01 08:47:50 -07:00
Nat Goodspeed f25179f148 MAINT-4952: fix NewResourceUploadInfo member initialization list. 2015-07-01 11:02:56 -04:00
Rider Linden eca87bb24f Merge 2015-06-30 17:13:51 -07:00
Rider Linden ddb63e7fb7 Initial checkin for uploading via coroutine. 2015-06-30 17:11:10 -07:00
Oz Linden 4aa64b99db correct version number merge 2015-06-30 14:33:24 -04:00
Oz Linden 52e1cbaab4 increment viewer version to 3.8.1 2015-06-30 14:31:54 -04:00
Oz Linden 9e50a19b44 Added tag 3.8.0-release for changeset 797ed69e6134 2015-06-30 14:31:54 -04:00
Nat Goodspeed 45ddc6e91d MAINT-5200: Correct new LLCore::HttpHeaders::ptr_t usage.
The convention about how to construct an HttpHeaders::ptr_t has changed.
Change new code to adapt to merged changes.
2015-06-29 23:14:45 -04:00
Nat Goodspeed 2701cfeb62 Automated merge with ssh://bitbucket.org/rider_linden/MAINT-4952-v-t-u 2015-06-29 22:26:47 -04:00
Nat Goodspeed 80d17b2dd9 MAINT-4952: Use IntrusivePtr for BufferArray,HttpHeaders,HttpOptions.
Specifically, change the ptr_t typedefs for these LLCore classes to use
IntrusivePtr rather than directly using boost::intrusive_ptr. This allows us
to use a simple ptr_t(raw ptr) constructor rather than having to remember to
code ptr_t(raw ptr, false) everywhere. In fact, the latter form is now invalid:
remove the now-extraneous 'false' constructor parameters.
2015-06-29 17:19:51 -04:00
Nat Goodspeed 76cb1fcf0b MAINT-4952: Add IntrusivePtr wrapper for boost::intrusive_ptr.
For a RefCounted subclass T, boost::intrusive_ptr<T> must be instantiated as
boost::intrusive_ptr<T>(raw ptr, false) to avoid immortal instances.
Forgetting that final bool parameter is both easy and extremely hard to spot
with desk checking or code review. IntrusivePtr<T> provides constructors that
Do The Right Thing, so we can typedef a subclass T's ptr_t to IntrusivePtr<T>
rather than directly to boost::intrusive_ptr<T>.
2015-06-29 15:37:32 -04:00
Nat Goodspeed 8bd39583fe MAINT-4952: Fix misplaced comments on intrusive_ptr_etc() overloads. 2015-06-29 15:32:47 -04:00
Nat Goodspeed f779c164a2 MAINT-5200: Add DebugSlshareLogTag temp setting for developers.
This allows engaging slshare-service debug logging for a particular viewer
session without having to twiddle the slshare-service hosts.
Also fix leaky LLCore::HttpHeaders::ptr_t construction.
2015-06-29 13:07:37 -04:00
Nat Goodspeed 6696577feb Automated merge with ssh://bitbucket.org/nat_linden/maint-4952-v-t-u 2015-06-29 09:18:26 -04:00
Nat Goodspeed da7b675025 Remove extraneous class qualification from method declaration.
clang doesn't like finding HttpCoroutineAdapter::postFileAndYield(...) inside
the class definition for HttpCoroutineAdapter. It's much happier with plain
postFileAndYield(...).
2015-06-29 09:07:19 -04:00
Nat Goodspeed 42fbbd09e0 Automated merge with ssh://bitbucket.org/rider_linden/MAINT-4952-v-t-u 2015-06-29 08:52:20 -04:00
Rider Linden 08ef748cba Added file upload interface to core HTTP utils. 2015-06-25 15:47:56 -07:00
Rider Linden 9703397551 MAINT-5295 Remove POSTFIELDS from PUT operation. 2015-06-24 10:10:22 -07:00
Rider Linden ec1368becf Code review results with Nat 2015-06-23 14:43:12 -07:00
Rider Linden ed4099628c Start work on coprocedure manager. 2015-06-23 11:58:15 -07:00
Nat Goodspeed da81830f4a MAINT-5200: Add debug headers to Facebook slshare-service calls. 2015-06-18 17:55:37 -04:00
Rider Linden 1060094eec Distressing. A variable got autocorrected to 'false' but the compiler didn't catch it. 2015-06-17 15:46:22 -07:00
Rider Linden 82e34f1683 https://jira.secondlife.com/browse/MAINT-5283
The default behavior in the HTTP layer changed to follow redirects automatically.
This was causing a problem with connecting to the SL share service which was attempting to
riderect to the login page at the CURL level.  Connections to SL Share will no longer redirect,
corrected for Facebook, Flickr and Twitter.
2015-06-17 14:41:28 -07:00