change to CURLOPT_CONNECTTIMEOUT_MS and ...

use a connect_timeout of 300ms for remote timer
This commit is contained in:
GetAway
2017-02-07 22:19:57 +01:00
committed by svenhoefer
parent 4b55d2597f
commit c1f788ac42
3 changed files with 7 additions and 7 deletions

View File

@@ -52,8 +52,8 @@ class CHTTPTool
CHTTPTool();
void setStatusViewer( CProgressWindow* statusview );
bool downloadFile( const std::string & URL, const char * const downloadTarget, int globalProgressEnd=-1, int connecttimeout=10, int timeout=1800);
std::string downloadString(const std::string & URL, int globalProgressEnd=-1, int connecttimeout=10, int timeout=1800);
bool downloadFile( const std::string & URL, const char * const downloadTarget, int globalProgressEnd=-1, int connecttimeout=10000, int timeout=1800);
std::string downloadString(const std::string & URL, int globalProgressEnd=-1, int connecttimeout=10000, int timeout=1800);
};