client now uses connection timeout param

This commit is contained in:
Matej Sekoranja
2014-08-06 10:04:25 +02:00
parent 219e69ceed
commit e5d2f457a2
6 changed files with 18 additions and 16 deletions

View File

@@ -274,13 +274,15 @@ bool SystemConfigurationImpl::getPropertyAsBoolean(const string &name, const boo
std::transform(value.begin(), value.end(), value.begin(), ::tolower);
bool isTrue = (value == "1") || (value == "true") || (value == "yes");
if (isTrue)
return true;
bool isFalse = (value == "0") || (value == "false") || (value == "no");
if (isFalse)
return false;
// invalid value
if (!(isTrue || isFalse))
return defaultValue;
else
return isTrue == true;
return defaultValue;
}
int32 SystemConfigurationImpl::getPropertyAsInteger(const string &name, const int32 defaultValue)