Fixed inconsistent time-scale in Httpclient.

This commit is contained in:
cpascal 2015-01-19 10:50:42 +09:00
parent 2c5d82d772
commit 281d231a5d
1 changed files with 3 additions and 3 deletions

View File

@ -577,7 +577,7 @@ private:
if(nullptr == instnace)
return false;
setReadAndConnectTimeout(instnace->getTimeoutForRead(), instnace->getTimeoutForConnect());
setReadAndConnectTimeout(instnace->getTimeoutForRead() * 1000, instnace->getTimeoutForConnect() * 1000);
setVerifySSL();
@ -851,8 +851,8 @@ void HttpClient::setSSLVerification(const std::string& caFile)
}
HttpClient::HttpClient()
: _timeoutForConnect(30*1000)
, _timeoutForRead(60*1000)
: _timeoutForConnect(30)
, _timeoutForRead(60)
{
}