Add CPU cycles to AIStateMachine in the crashlogger

Also removes unused Debug Setting CurlMaximumNumberOfHandles.
The maximum number of handles is limitted by
CurlMaxTotalConcurrentConnections.
This commit is contained in:
Aleric Inglewood
2013-03-07 13:44:40 +01:00
parent d1d09d7c18
commit 65d750b190
3 changed files with 10 additions and 13 deletions

View File

@@ -49,6 +49,7 @@
#include "llhttpclient.h"
#include "llsdserialize.h"
#include "llcurl.h"
#include "aistatemachine.h"
LLPumpIO* gServicePump;
BOOL gBreak = false;
@@ -374,7 +375,7 @@ void LLCrashLogger::updateApplication(const std::string& message)
{
gServicePump->pump();
gServicePump->callback();
//FIXME: AIStateMachine::mainloop(); needs CPU cycles. Can't call it from here though, because it uses gSavedSettings which is part of newview.
AIStateMachine::mainloop();
}
bool LLCrashLogger::init()
@@ -382,6 +383,13 @@ bool LLCrashLogger::init()
// Initialize curl
AICurlInterface::initCurl();
AIStateMachine::setMaxCount(100); // StateMachineMaxTime
// Start curl thread.
AICurlInterface::startCurlThread(64, // CurlMaxTotalConcurrentConnections
8, // CurlConcurrentConnectionsPerHost
true); // NoVerifySSLCert
// We assume that all the logs we're looking for reside on the current drive
gDirUtilp->initAppDirs("SecondLife");