Skip to content
Snippets Groups Projects
Commit 6de1d311 authored by Oz Linden's avatar Oz Linden
Browse files

reset crash dump upload retries and timeouts

parent ddd476c9
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment