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
6de1d311
Commit
6de1d311
authored
9 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
reset crash dump upload retries and timeouts
parent
ddd476c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcrashlogger/llcrashlogger.cpp
+5
-2
5 additions, 2 deletions
indra/llcrashlogger/llcrashlogger.cpp
with
5 additions
and
2 deletions
indra/llcrashlogger/llcrashlogger.cpp
+
5
−
2
View file @
6de1d311
...
@@ -55,6 +55,9 @@ BOOL gSent = false;
...
@@ -55,6 +55,9 @@ BOOL gSent = false;
int
LLCrashLogger
::
ssl_mutex_count
=
0
;
int
LLCrashLogger
::
ssl_mutex_count
=
0
;
LLCoreInt
::
HttpMutex
**
LLCrashLogger
::
ssl_mutex_list
=
NULL
;
LLCoreInt
::
HttpMutex
**
LLCrashLogger
::
ssl_mutex_list
=
NULL
;
#define CRASH_UPLOAD_RETRIES 3
/* seconds */
#define CRASH_UPLOAD_TIMEOUT 180
/* seconds */
class
LLCrashLoggerHandler
:
public
LLHttpSDHandler
class
LLCrashLoggerHandler
:
public
LLHttpSDHandler
{
{
LOG_CLASS
(
LLCrashLoggerHandler
);
LOG_CLASS
(
LLCrashLoggerHandler
);
...
@@ -472,13 +475,13 @@ bool LLCrashLogger::sendCrashLog(std::string dump_dir)
...
@@ -472,13 +475,13 @@ bool LLCrashLogger::sendCrashLog(std::string dump_dir)
msg
=
msg
+
mCrashHost
.
c_str
();
msg
=
msg
+
mCrashHost
.
c_str
();
updateApplication
(
msg
.
c_str
());
updateApplication
(
msg
.
c_str
());
sent
=
runCrashLogPost
(
mCrashHost
,
post_data
,
std
::
string
(
"Sending to server"
),
3
,
5
);
sent
=
runCrashLogPost
(
mCrashHost
,
post_data
,
std
::
string
(
"Sending to server"
),
CRASH_UPLOAD_RETRIES
,
CRASH_UPLOAD_TIMEOUT
);
}
}
if
(
!
sent
)
if
(
!
sent
)
{
{
updateApplication
(
"Using default server..."
);
updateApplication
(
"Using default server..."
);
sent
=
runCrashLogPost
(
mAltCrashHost
,
post_data
,
std
::
string
(
"Sending to default server"
),
3
,
5
);
sent
=
runCrashLogPost
(
mAltCrashHost
,
post_data
,
std
::
string
(
"Sending to default server"
),
CRASH_UPLOAD_RETRIES
,
CRASH_UPLOAD_TIMEOUT
);
}
}
mSentCrashLogs
=
sent
;
mSentCrashLogs
=
sent
;
...
...
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