modify remote configure db's connect timeout from 2s to 1s

This commit is contained in:
tsthght 2018-10-25 16:22:36 +08:00
parent 19e66b929a
commit 42b20d3e86

View File

@ -153,7 +153,7 @@ chassis_config_get_mysql_connection(chassis_config_t *conf)
if (!conn)
return NULL;
unsigned int timeout = 2 * SECONDS;
unsigned int timeout = 1 * SECONDS;
mysql_options(conn, MYSQL_OPT_CONNECT_TIMEOUT, &timeout);
mysql_options(conn, MYSQL_OPT_READ_TIMEOUT, &timeout);
mysql_options(conn, MYSQL_OPT_WRITE_TIMEOUT, &timeout);