Aleric Inglewood
e14be5c8c2
Make debug_libcurl.cc compile with libcurl 7.21 and higher
2012-08-07 01:33:29 +02:00
Aleric Inglewood
65a1aae629
Bug fix
...
curl_easy_setopt expects a long int. Before this patch,
uninitialized memory was read, leading to extreme long
time out, instead of the intended disabled time out (so,
in practise this patch has little effect).
This bug was discovered with the previous commit.
2012-08-05 18:55:27 +02:00
Aleric Inglewood
caef97ad36
Print all libcurl calls if -DDEBUG_CURLIO. Don't create static lib for cwdebug.
...
Basically, cmake doesn't support linking static libs into a shared lib.
The correct way is to just specify source files in subdirectories
directly as source files of the shared library. This patch changes that.
Also, after this commit, when DEBUG_CURLIO is defined, every call to
libcurl is printed to llinfos (or to dc::curl when using libcwd).
2012-08-05 18:51:21 +02:00
Aleric Inglewood
98c740f204
Remove debug output
2012-08-03 00:56:41 +02:00
Aleric Inglewood
255742db26
Merge branch 'curlthreading2' into breakforce
2012-08-03 00:54:12 +02:00
Aleric Inglewood
af4ceb0658
Crash on exit fix.
2012-08-03 00:53:54 +02:00
Aleric Inglewood
08d72b12ab
Fix compilation on linux. Remove trailing ^M's
2012-08-02 23:03:03 +02:00
Siana Gearz
4650636e5a
Use TCP socket pair instead of UDP
2012-08-02 22:33:01 +02:00
Aleric Inglewood
725cdc2d69
Linux compile fixes
2012-07-31 23:04:45 +02:00
Siana Gearz
048c57cf0c
Linktime fix
2012-07-31 22:40:20 +02:00
Siana Gearz
12dcbfbc79
Merge remote-tracking branch 'aleric/breakforce' into breakforce
2012-07-31 22:39:48 +02:00
Aleric Inglewood
32be05fa6c
Compile warning fixes. Type fix (SLL -> SSL)
2012-07-31 22:37:49 +02:00
Aleric Inglewood
ae62b67554
Merge branch 'curlthreading2' into breakforce
2012-07-31 22:24:57 +02:00
Siana Gearz
9c4f22d85b
Attempt at fixing linker errors...
2012-07-31 21:30:05 +02:00
Siana Gearz
7f64668e55
Compile warning fix
2012-07-31 21:29:22 +02:00
Siana Gearz
0208942b84
Compile warning fix
2012-07-31 21:28:37 +02:00
Siana Gearz
783e86990c
Compile fixes
2012-07-31 19:42:15 +02:00
Aleric Inglewood
c9715c5b0b
Print Dout() and DoutEntering() debug output on windows.
...
This is a bit of a hack currently and requires a
recompile with -DDEBUG_CURLIO.
2012-07-31 04:57:13 +02:00
Aleric Inglewood
dd47123bde
Add possibility to suppress function name prefix in debug output.
...
Adds llinfos_nf et al.
2012-07-31 04:56:03 +02:00
Aleric Inglewood
3de21156b5
Windows code improvements and debugging.
...
Extended the DEBUG_WINDOWS_CODE_ON_LINUX hack to include ALL code.
memset-zero sockaddr_in, and use WSASocket as per suggestion of Shyotl.
2012-07-30 02:46:48 +02:00
Aleric Inglewood
ce2c6ab49e
Don't crash when libcurl wasn't compiled with support for libz
2012-07-30 02:45:39 +02:00
Aleric Inglewood
d19c5a4a4a
Move apr_os_thread_current_wrapper closer to where it's used, and fix a comment.
2012-07-30 02:44:51 +02:00
Aleric Inglewood
8945fe4857
Unbreak standalone install on 64bit linux
2012-07-30 01:47:27 +02:00
Aleric Inglewood
464919072d
Use LLBufferArray instead of std::stringstream for CurlResponderBuffer::mInput
...
Note the changed code is never used yet. CurlResponderBuffer::curlReadCallback
is only called when Request::post is being used, which is never used.
2012-07-29 22:52:20 +02:00
Siana Gearz
f8c2087d74
Preliminary Windows support for curlthreading
2012-07-29 22:47:19 +02:00
Siana Gearz
7adc0e24ab
Merge branch 'curlthreading2' of git://github.com/AlericInglewood/SingularityViewer into curlthreading
2012-07-29 21:32:24 +02:00
Aleric Inglewood
ba65f29a72
Fix draining of wake up pipe.
...
This is a bug fix, although not one we'd ever run into as normally
there is always just one byte to read, never an EAGAIN and certainly
never more than 256 bytes. Anyway, also those cases should work now.
2012-07-29 21:12:45 +02:00
Aleric Inglewood
76eef6fe59
Avoid crash on exit.
2012-07-29 18:38:59 +02:00
Aleric Inglewood
fe38f59bbb
Bug fix
2012-07-29 01:30:10 +02:00
Siana Gearz
2bcabce1d6
Merge branch 'curlthreading2' of git://github.com/AlericInglewood/SingularityViewer into curlthreading
2012-07-28 17:28:18 +02:00
Aleric Inglewood
ed4c6b7c92
Removed dead code.
...
This code has been in the viewer source for a long time,
and hasn't been used for a long time (furtherest back that
I checked was Snowglobe 1.4).
Most notably, this removes LLContextURLExtractor and code
that used it because that required an API where AICurlEasyHandle
is created before an url is known, which gets in the way of
reusing connections.
2012-07-23 18:15:11 +02:00
Aleric Inglewood
785729abdf
Merge branch 'master' into curlthreading2
2012-07-22 04:17:34 +02:00
Aleric Inglewood
2830b35aa6
Avoid dead lock in LLQueuedThread::generateHandle / LLTextureFetchWorker::callbackDecoded
...
Thead 1:
indra/llcommon/llqueuedthread.cpp:456:
452 if (complete)
453 {
454 lockData(); // This locks LLThread::mRunCondition
455 req->setStatus(STATUS_COMPLETE);
456 req->finishRequest(true);
LLImageDecodeThread::ImageRequest::finishRequest calls:
mResponder->completed(success, mDecodedImageRaw, mDecodedImageAux);
LLTextureFetchWorker::DecodeResponder::completed calls:
worker->callbackDecoded(success, raw, aux);
LLTextureFetchWorker::callbackDecoded calls:
LLMutexLock lock(&mWorkMutex); // This locks LLTextureFetchWorker::mWorkMutex
Thread 2:
LLTextureFetchWorker::doWork calls:
LLMutexLock lock(&mWorkMutex); // This locks LLTextureFetchWorker::mWorkMutex
.
.
.
mDecodeHandle = mFetcher->mImageDecodeThread->decodeImage(mFormattedImage, image_priority, discard, mNeedsAux, new DecodeResponder(mFetcher, mID, this));
LLImageDecodeThread::decodeImage calls:
handle_t handle = generateHandle();
LLQueuedThread::generateHandle calls:
lockData(); // This locks LLThread::mRunCondition
2012-07-22 04:13:23 +02:00
Aleric Inglewood
fb38f6adea
Always write curl I/O debug info for the login attempt.
2012-07-21 21:51:24 +02:00
Aleric Inglewood
3a30f1dc71
This is called when LLApp::sStatus == LLApp::APP_STATUS_STOPPED too.
2012-07-21 03:57:58 +02:00
Siana Gearz
8802d5033f
Merge branch 'master' into curlthreading
...
Conflicts:
indra/newview/viewer_manifest.py
2012-07-20 00:37:58 +02:00
Siana Gearz
3d39564605
Merge branch 'curlthreading2' of git://github.com/AlericInglewood/SingularityViewer into curlthreading
2012-07-20 00:35:43 +02:00
Siana Gearz
a8a30ae3b9
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
2012-07-19 22:19:52 +02:00
Lirusaito
15af410e6f
Fix typo in outbox icon name, when closed.
2012-07-19 14:02:11 -04:00
Aleric Inglewood
9e5cbf330f
Bug fix for windows code found with previous commit.
2012-07-19 17:28:45 +02:00
Aleric Inglewood
2fa9334090
Debug code to test the windows code path on linux
2012-07-19 17:27:37 +02:00
Aleric Inglewood
fcdf5d377e
Move PollSet out of the header file
2012-07-19 17:26:02 +02:00
Shyotl
756a284048
Don't ever halt stalled fmodex streams, as they don't seem to truly 'stall'. Decrease delay between leaving starvation and unmuting down to 1 second (from 5).
2012-07-19 02:32:16 -05:00
Lirusaito
32e2b584b9
Translation Fix
2012-07-19 02:12:51 -04:00
Lirusaito
add52b4d57
Merge branch 'master' of https://github.com/singularity-viewer/SingularityViewer
2012-07-18 23:41:23 -04:00
Siana Gearz
a4d2cb3d12
Some fighting with Shyotl over FMOD Ex
2012-07-19 05:35:17 +02:00
Lirusaito
72fbb3f63e
Merge branch 'master' of https://github.com/DamianZhaoying/SingularityViewer
2012-07-18 22:58:52 -04:00
Siana Gearz
c62290accb
Merge branch 'master' of git://github.com/Lirusaito/SingularityViewer
2012-07-19 04:46:15 +02:00
Siana Gearz
8ad40c5d66
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
...
Conflicts:
indra/llaudio/llaudioengine_fmodex.cpp
2012-07-19 04:44:01 +02:00
Lirusaito
cd5a721c23
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
2012-07-18 22:31:53 -04:00