Skip to content

Commit

Permalink
Change monitor connect timeout from 2 to 6 seconds
Browse files Browse the repository at this point in the history
wangbin committed Apr 11, 2022
1 parent 143c905 commit b9f46ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cetus-monitor.c
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ get_mysql_connection(cetus_monitor_t *monitor, char *addr)
monitor->mysql_init_called = 1;
if (!conn) return NULL;

unsigned int timeout = 2 * SECONDS;
unsigned int timeout = 6 * 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);

0 comments on commit b9f46ea

Please sign in to comment.