There was an error while loading. Please reload this page.
1 parent f300288 commit 6a396c6Copy full SHA for 6a396c6
1 file changed
src/mysql.c
@@ -39,6 +39,14 @@ int open_sphx(struct session_data *sdata, struct config *cfg){
39
40
mysql_init(&(sdata->sphx));
41
42
+ /*
43
+ * searchd speaks the MySQL protocol but does not support TLS.
44
+ * Newer MariaDB Connector/C versions enable server certificate
45
+ * verification by default, causing mysql_real_connect() to fail.
46
+ */
47
+ unsigned int verify = 0;
48
+ mysql_options(&(sdata->sphx), MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &verify);
49
+
50
mysql_options(&(sdata->sphx), MYSQL_OPT_CONNECT_TIMEOUT, (const char*)&cfg->mysql_connect_timeout);
51
mysql_options(&(sdata->sphx), MYSQL_OPT_RECONNECT, (const char*)&rc);
52
0 commit comments