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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user