Skip to content
Snippets Groups Projects
Commit ef1b709c authored by Rider Linden's avatar Rider Linden
Browse files

Fix to linux link

Put timeout back into crashlogger post.
parent 7c639f11
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,7 @@ set(LIBRT_LIBRARY rt) ...@@ -61,6 +61,7 @@ set(LIBRT_LIBRARY rt)
target_link_libraries(linux-crash-logger target_link_libraries(linux-crash-logger
${LIBRT_LIBRARY}
${LLCRASHLOGGER_LIBRARIES} ${LLCRASHLOGGER_LIBRARIES}
${LLVFS_LIBRARIES} ${LLVFS_LIBRARIES}
${LLXML_LIBRARIES} ${LLXML_LIBRARIES}
...@@ -68,7 +69,6 @@ target_link_libraries(linux-crash-logger ...@@ -68,7 +69,6 @@ target_link_libraries(linux-crash-logger
${LLVFS_LIBRARIES} ${LLVFS_LIBRARIES}
${LLMATH_LIBRARIES} ${LLMATH_LIBRARIES}
${LLCOREHTTP_LIBRARIES} ${LLCOREHTTP_LIBRARIES}
${LIBRT_LIBRARY}
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${BOOST_CONTEXT_LIBRARY} ${BOOST_CONTEXT_LIBRARY}
${BOOST_COROUTINE_LIBRARY} ${BOOST_COROUTINE_LIBRARY}
......
...@@ -396,20 +396,23 @@ bool LLCrashLogger::saveCrashBehaviorSetting(S32 crash_behavior) ...@@ -396,20 +396,23 @@ bool LLCrashLogger::saveCrashBehaviorSetting(S32 crash_behavior)
bool LLCrashLogger::runCrashLogPost(std::string host, LLSD data, std::string msg, int retries, int timeout) bool LLCrashLogger::runCrashLogPost(std::string host, LLSD data, std::string msg, int retries, int timeout)
{ {
LLCore::HttpRequest httpRequest; LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest);
LLCore::HttpOptions::ptr_t httpOpts(new LLCore::HttpOptions, false);
gBreak = false; gBreak = false;
httpOpts->setTimeout(timeout);
for(int i = 0; i < retries; ++i) for(int i = 0; i < retries; ++i)
{ {
updateApplication(llformat("%s, try %d...", msg.c_str(), i+1)); updateApplication(llformat("%s, try %d...", msg.c_str(), i+1));
LLCoreHttpUtil::requestPostWithLLSD(&httpRequest, LLCore::HttpRequest::DEFAULT_POLICY_ID, 0, LLCoreHttpUtil::requestPostWithLLSD(httpRequest.get(), LLCore::HttpRequest::DEFAULT_POLICY_ID, 0,
host, data, NULL, NULL, new LLCrashLoggerHandler); host, data, httpOpts.get(), NULL, new LLCrashLoggerHandler);
while(!gBreak) while(!gBreak)
{ {
updateApplication(); // No new message, just pump the IO updateApplication(); // No new message, just pump the IO
httpRequest.update(0L); httpRequest->update(0L);
} }
if(gSent) if(gSent)
{ {
......
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