version 1.86, 2013/05/20 06:11:30
|
version 1.86.10.1, 2013/10/01 15:47:40
|
|
|
_httpConnection->setSocketWriteTimeout(_timeoutMilliseconds/1000+1); | _httpConnection->setSocketWriteTimeout(_timeoutMilliseconds/1000+1); |
} | } |
| |
void CIMClientRep::_disconnect() |
void CIMClientRep::_disconnect(bool keepChallengeStatus) |
{ | { |
if (_connected) | if (_connected) |
{ | { |
|
|
// Let go of the cached request message if we have one | // Let go of the cached request message if we have one |
_authenticator.setRequestMessage(0); | _authenticator.setRequestMessage(0); |
| |
|
if (keepChallengeStatus == false) |
|
{ |
// Reset the challenge status | // Reset the challenge status |
_authenticator.resetChallengeStatus(); | _authenticator.resetChallengeStatus(); |
} | } |
|
} |
| |
void CIMClientRep::connect( | void CIMClientRep::connect( |
const String& host, | const String& host, |
|
|
// | // |
if (response->getCloseConnect() == true) | if (response->getCloseConnect() == true) |
{ | { |
_disconnect(); |
_disconnect(true); |
_doReconnect = true; | _doReconnect = true; |
response->setCloseConnect(false); | response->setCloseConnect(false); |
} | } |