From a1c232039ffa8d1835d0d3008041e9eb1c5c7f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 6 Jul 2021 17:43:30 +0200 Subject: [PATCH] Reduce length of mysql_bug_102266 #3501 In #3285 we increased the amount of data sent to the backend during connection time using MYSQL_OPT_CONNECT_ATTR_ADD , in order to avoid MySQL bug 102266 . See #3276 . Although this create a lot of noise in ProxySQL error log and MySQL error log, because the connection attributes are too long and they get truncated. This PR reduces the length of connection attributes --- lib/mysql_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql_connection.cpp b/lib/mysql_connection.cpp index 64af058db..b2bcda431 100644 --- a/lib/mysql_connection.cpp +++ b/lib/mysql_connection.cpp @@ -654,7 +654,7 @@ void MySQL_Connection::connect_start() { } else { mysql_options4(mysql, MYSQL_OPT_CONNECT_ATTR_ADD, "proxysql_sha1", "unknown"); } - mysql_options4(mysql, MYSQL_OPT_CONNECT_ATTR_ADD, "mysql_bug_102266", "ProxySQL is sending a lot of data to MySQL server using CLIENT_CONNECT_ATTRS in order to not hit MySQL bug https://bugs.mysql.com/bug.php?id=102266 . See also https://github.com/sysown/proxysql/issues/3276"); + mysql_options4(mysql, MYSQL_OPT_CONNECT_ATTR_ADD, "mysql_bug_102266", "Avoid MySQL bug https://bugs.mysql.com/bug.php?id=102266 , https://github.com/sysown/proxysql/issues/3276"); } if (parent->use_ssl) { mysql_ssl_set(mysql, mysql_thread___ssl_p2s_key, mysql_thread___ssl_p2s_cert, mysql_thread___ssl_p2s_ca, NULL, mysql_thread___ssl_p2s_cipher);