Siana Gearz
761439cc8d
Setting socket pair non-blocking
2012-08-05 08:20:31 +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
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
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
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
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
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
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
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
Aleric Inglewood
051263117d
Don't force TLS v1 unless needed and then warn about it.
2012-07-19 00:13:43 +02:00
Aleric Inglewood
f772cbee51
Don't crash upon exit if we fail to cleanup.
2012-07-18 03:13:33 +02:00
Aleric Inglewood
7f78870295
Merge remote-tracking branch 'siana/master' into curlthreading2
...
Conflicts:
indra/llcommon/llstring.cpp
indra/llmessage/llcurl.cpp
indra/newview/llviewertexturelist.cpp
indra/newview/viewer_manifest.py
install.xml
Resolved:
indra/llcommon/llstring.cpp :
two different ways to work around compile error.
indra/llmessage/llcurl.cpp :
this file is no longer used.. I deleted huge
parts to mark that I implemented that. Siana
apparently made a few changes in those parts.
indra/newview/llviewertexturelist.cpp :
manually copied patch. Mine also removed trailing
spaces, keeping that.
indra/newview/viewer_manifest.py:
Collision with changes from Liru, which have been
ignored (kept siana/master).
install.xml:
Collision with an earlier screw up. I kept the
fix from siana/master.
2012-07-18 02:08:31 +02:00
Aleric Inglewood
706b9c55c2
Moving stuff around a bit...
2012-07-18 01:41:36 +02:00
Shyotl
48ae0d003d
Made the Visual Studio compiler a bit more happy with aicurl.
2012-07-17 18:04:48 -05:00
Aleric Inglewood
0204d09a89
If curl thread is already awake, then don't write something to the pipe.
2012-07-17 23:39:44 +02:00
Aleric Inglewood
9deb3e433c
LLCurlRequest time out fixes.
...
Also some more cleanup on exit improvements.
2012-07-16 22:35:04 +02:00
Aleric Inglewood
53e96b02c0
Bug fix. Forgot to actually make it virtual.
2012-07-15 22:59:29 +02:00
Aleric Inglewood
14e5b46687
Fixed and adjusted remainders of isValid() code.
...
Note that in the code, and still, has_curl_request was always false.
However, instead of deleting all code paths that are only executed
when has_curl_request would be true, I fixed the code to work as
intended with my current implementation; which also results in
LLCurlRequests to never expire. This way things won't break
unexpectedly when this ever changes.
Since on this branch isValid was only called still (the rest was
removed already) to check if the curl download expired, I took
the liberty to rename isValid to hasNotExpired.
2012-07-15 22:46:38 +02:00
Aleric Inglewood
a6bb2604f6
Use our API, which makes more sense.
2012-07-15 16:58:47 +02:00
Siana Gearz
c1c04b489c
Revert "Possible fix for "No able to connect to SecondLife""
...
This reverts commit 66c95af093 .
2012-07-15 02:29:00 +02:00
Aleric Inglewood
66c95af093
Possible fix for "No able to connect to SecondLife"
2012-07-14 20:57:55 +02:00
Aleric Inglewood
7416d2aaf1
Timer, time out, and clean up improvements.
2012-07-14 04:29:37 +02:00
Aleric Inglewood
0419f8bee9
Add an AITimer to AICurlEasyRequestStateMachine.
...
Fixes AIStateMachine to work thread-safe with the timer.
2012-07-10 05:09:08 +02:00
Aleric Inglewood
f46d8e8a10
Try to be smart about not printing garbage (binary) received from the server.
2012-07-05 23:50:03 +02:00
Aleric Inglewood
df20f918ba
New libcwd channel 'curlio'.
...
Enable printing of libcurl 'IO' debug messages when libcwd channel
'curlio' is turned on (added to .libcwdrc). Avoiding a recompile.
2012-07-05 03:10:16 +02:00
Aleric Inglewood
ae9dadb5d8
Improved layout of curl stats print out.
2012-07-04 16:56:33 +02:00
Aleric Inglewood
14276b3cf8
Bug fix
2012-07-04 08:44:22 +02:00
Aleric Inglewood
07e7eeedd1
Added some windows code.
...
Iterating directly over the elements of fd_set::fd_array in
windows is faster than using FD_ISSET.
2012-07-04 07:32:24 +02:00
Drake Arconis
7af331c50d
First set of changes for new librarys and lib layout support!
...
Modified repackage script to support new layout
Fixed webkit to work against new llqtwebkit
2012-07-04 00:26:42 +00:00
Aleric Inglewood
125a10bb44
Code hardening, review, bug fixes, documentation, curl stats and cleanup.
...
Bug fixes:
AICurlEasyRequestStateMachine didn't delete itself.
curl_multi_socket_action calls were made for potentional removed sockets.
The curl thread wasn't terminated.
2012-07-04 00:10:43 +02:00
Drake Arconis
8eb319d3ba
Merge remote-tracking branch 'aleric/V2MultiWear' into AltCompilers
2012-07-02 21:08:04 +00:00
Drake Arconis
ece9dda7b4
Initial support for the Clang compiler and numerous warning fixes
2012-07-02 19:45:41 +00:00
Aleric Inglewood
cb5efad026
Turn llassert[_always] into a (single) statement and print line nr in decimal.
2012-06-30 21:14:18 +02:00
Aleric Inglewood
26922a1578
Merge remote-tracking branch 'lirusaito/curlthreading2' into curlthreading2
2012-06-29 05:28:58 +02:00
Aleric Inglewood
90493b6571
Add support for libopenSSL older than version 1.0.0.
2012-06-29 05:20:24 +02:00
Aleric Inglewood
2dee921cd5
Fix libcurl version check.
2012-06-29 01:33:38 +02:00