mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 11:57:44 +08:00
modify remote configure db's connect timeout from 2s to 1s
This commit is contained in:
parent
19e66b929a
commit
42b20d3e86
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user