summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be9dd63)
raw | patch | inline | side by side (parent: be9dd63)
author | William Tisäter <william@defunct.cc> | |
Sun, 28 Apr 2013 22:01:24 +0000 (00:01 +0200) | ||
committer | William Tisäter <william@defunct.cc> | |
Sun, 28 Apr 2013 22:01:24 +0000 (00:01 +0200) |
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index 670179bfb67352d67c06a781bac53a16ca2eef4d..8b660a3ccb867d8ff4ffa3739c85fb90f373bfad 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
};
typedef struct mysql_database_s mysql_database_t; /* }}} */
-struct st_mysql_options *options;
static int mysql_read (user_data_t *ud);
void mysql_read_default_options(struct st_mysql_options *options,
}
}
- options->connect_timeout = db->timeout;
- mysql_read_default_options(options, NULL, NULL);
+ /* Configure TCP connect timeout (default: 0) */
+ db->con->options.connect_timeout = db->timeout;
if (mysql_real_connect (db->con, db->host, db->user, db->pass,
db->database, db->port, db->socket, 0) == NULL)