Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
cc3f90a8
Commit
cc3f90a8
authored
13 years ago
by
Xiaohong Bao
Browse files
Options
Downloads
Plain Diff
Automated merge with
https://bitbucket.org/VirLinden/vir-project-3
parents
361efbc0
1316f331
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llmessage/llcurl.cpp
+11
-0
11 additions, 0 deletions
indra/llmessage/llcurl.cpp
indra/llmessage/llcurl.h
+2
-0
2 additions, 0 deletions
indra/llmessage/llcurl.h
with
13 additions
and
0 deletions
indra/llmessage/llcurl.cpp
+
11
−
0
View file @
cc3f90a8
...
@@ -91,6 +91,7 @@ std::string LLCurl::sCAFile;
...
@@ -91,6 +91,7 @@ std::string LLCurl::sCAFile;
LLCurlThread
*
LLCurl
::
sCurlThread
=
NULL
;
LLCurlThread
*
LLCurl
::
sCurlThread
=
NULL
;
LLMutex
*
LLCurl
::
sHandleMutexp
=
NULL
;
LLMutex
*
LLCurl
::
sHandleMutexp
=
NULL
;
S32
LLCurl
::
sTotalHandles
=
0
;
S32
LLCurl
::
sTotalHandles
=
0
;
bool
LLCurl
::
sNotQuitting
=
true
;
void
check_curl_code
(
CURLcode
code
)
void
check_curl_code
(
CURLcode
code
)
{
{
...
@@ -319,6 +320,14 @@ LLCurl::Easy::~Easy()
...
@@ -319,6 +320,14 @@ LLCurl::Easy::~Easy()
--
gCurlEasyCount
;
--
gCurlEasyCount
;
curl_slist_free_all
(
mHeaders
);
curl_slist_free_all
(
mHeaders
);
for_each
(
mStrings
.
begin
(),
mStrings
.
end
(),
DeletePointerArray
());
for_each
(
mStrings
.
begin
(),
mStrings
.
end
(),
DeletePointerArray
());
if
(
mResponder
&&
LLCurl
::
sNotQuitting
)
//aborted
{
std
::
string
reason
(
"Request timeout, aborted."
)
;
mResponder
->
completedRaw
(
408
,
//HTTP_REQUEST_TIME_OUT, timeout, abort
reason
,
mChannels
,
mOutput
);
}
mResponder
=
NULL
;
}
}
void
LLCurl
::
Easy
::
resetState
()
void
LLCurl
::
Easy
::
resetState
()
...
@@ -1462,6 +1471,8 @@ void LLCurl::initClass(bool multi_threaded)
...
@@ -1462,6 +1471,8 @@ void LLCurl::initClass(bool multi_threaded)
void
LLCurl
::
cleanupClass
()
void
LLCurl
::
cleanupClass
()
{
{
sNotQuitting
=
false
;
//set quitting
//shut down curl thread
//shut down curl thread
while
(
1
)
while
(
1
)
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/llmessage/llcurl.h
+
2
−
0
View file @
cc3f90a8
...
@@ -197,6 +197,8 @@ class LLCurl
...
@@ -197,6 +197,8 @@ class LLCurl
static
LLMutex
*
sHandleMutexp
;
static
LLMutex
*
sHandleMutexp
;
static
S32
sTotalHandles
;
static
S32
sTotalHandles
;
public
:
static
bool
sNotQuitting
;
};
};
class
LLCurl
::
Easy
class
LLCurl
::
Easy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment