platform/shared/common/RhodesApp.cpp in rhodes-3.0.0 vs platform/shared/common/RhodesApp.cpp in rhodes-3.0.1.beta.2

- old
+ new

@@ -294,12 +294,15 @@ } LOG(INFO) + "RhodesApp thread shutdown"; rubyext::CGeoLocation::Destroy(); - RhoRubyStop(); sync::CSyncThread::Destroy(); + + net::CAsyncHttp::Destroy(); + + RhoRubyStop(); } CRhodesApp::~CRhodesApp(void) { stopApp(); @@ -339,11 +342,11 @@ m_httpServer->stop(); stopWait(); stop(2000); } - net::CAsyncHttp::Destroy(); +// net::CAsyncHttp::Destroy(); } template <typename T> class CRhoCallInThread : public common::CRhoThread { @@ -956,10 +959,13 @@ oItem.m_strFilePath = LOGCONF().getLogFilePath(); oItem.m_strContentType = "application/octet-stream"; boolean bOldSaveToFile = LOGCONF().isLogToFile(); LOGCONF().setLogToFile(false); - NetResponse resp = getNetRequest().pushMultipartData( strQuery, oItem, &(rho::sync::CSyncThread::getSyncEngine()), null ); + NetRequest oNetRequest; + oNetRequest.setSslVerifyPeer(false); + + NetResponse resp = getNetRequest(&oNetRequest).pushMultipartData( strQuery, oItem, &(rho::sync::CSyncThread::getSyncEngine()), null ); LOGCONF().setLogToFile(bOldSaveToFile); if ( !resp.isOK() ) { LOG(ERROR) + "send_log failed : network error - " + resp.getRespCode() + "; Body - " + resp.getCharData();