MXS-2329 Use durations with connection_timeout

This commit is contained in:
Johan Wikman
2019-04-29 10:49:26 +03:00
parent 638debcdc0
commit 9fb4116bf5
3 changed files with 11 additions and 4 deletions

View File

@ -219,7 +219,7 @@ Service::Service(const std::string& name,
localhost_match_wildcard_host = params->get_bool(CN_LOCALHOST_MATCH_WILDCARD_HOST);
retry_start = params->get_bool(CN_RETRY_ON_FAILURE);
enable_root = params->get_bool(CN_ENABLE_ROOT_USER);
conn_idle_timeout = params->get_integer(CN_CONNECTION_TIMEOUT);
conn_idle_timeout = params->get_duration<std::chrono::seconds>(CN_CONNECTION_TIMEOUT).count();
max_connections = params->get_integer(CN_MAX_CONNECTIONS);
log_auth_warnings = params->get_bool(CN_LOG_AUTH_WARNINGS);
strip_db_esc = params->get_bool(CN_STRIP_DB_ESC);