diff --git a/src/engine/client/http.cpp b/src/engine/client/http.cpp index 315cbb4d1..487750913 100644 --- a/src/engine/client/http.cpp +++ b/src/engine/client/http.cpp @@ -186,8 +186,8 @@ int CRequest::ProgressCallback(void *pUser, double DlTotal, double DlCurr, doubl return pTask->m_Abort ? -1 : 0; } -CHead::CHead(const char *pUrl, CTimeout Timeout) : - CRequest(pUrl, Timeout) +CHead::CHead(const char *pUrl, CTimeout Timeout, bool LogProgress) : + CRequest(pUrl, Timeout, LogProgress) { } @@ -202,8 +202,8 @@ bool CHead::AfterInit(void *pCurl) return true; } -CGet::CGet(const char *pUrl, CTimeout Timeout) : - CRequest(pUrl, Timeout), +CGet::CGet(const char *pUrl, CTimeout Timeout, bool LogProgress) : + CRequest(pUrl, Timeout, LogProgress), m_BufferSize(0), m_BufferLength(0), m_pBuffer(NULL) diff --git a/src/engine/client/http.h b/src/engine/client/http.h index 93ac29e20..3365d6ac5 100644 --- a/src/engine/client/http.h +++ b/src/engine/client/http.h @@ -72,7 +72,7 @@ class CHead : public CRequest virtual bool AfterInit(void *pCurl); public: - CHead(const char *pUrl, CTimeout Timeout); + CHead(const char *pUrl, CTimeout Timeout, bool LogProgress = true); ~CHead(); }; @@ -85,7 +85,7 @@ class CGet : public CRequest unsigned char *m_pBuffer; public: - CGet(const char *pUrl, CTimeout Timeout); + CGet(const char *pUrl, CTimeout Timeout, bool LogProgress = true); ~CGet(); size_t ResultSize() const diff --git a/src/engine/client/serverbrowser_http.cpp b/src/engine/client/serverbrowser_http.cpp index b8dc51460..795c2b66d 100644 --- a/src/engine/client/serverbrowser_http.cpp +++ b/src/engine/client/serverbrowser_http.cpp @@ -137,14 +137,14 @@ void CChooseMaster::CJob::Run() { aTimeMs[i] = -1; const char *pUrl = m_pData->m_aaUrls[aRandomized[i]]; - CHead Head(pUrl, Timeout); + CHead Head(pUrl, Timeout, false); IEngine::RunJobBlocking(&Head); if(Head.State() != HTTP_DONE) { continue; } int64 StartTime = time_get(); - CGet Get(pUrl, Timeout); + CGet Get(pUrl, Timeout, false); IEngine::RunJobBlocking(&Get); int Time = (time_get() - StartTime) * 1000 / time_freq(); if(Get.State() != HTTP_DONE)