From b83dbef692197cb3c74d3ccc0af0a2b80f1b08d3 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 26 Jan 2025 19:03:37 +0530 Subject: [PATCH] QueryLogsMySql: updated code to use connection.Open() instead of OpenAsync() since it has a critical bug that will crash the entire DNS server which Oracle wont fix: https://bugs.mysql.com/bug.php?id=110789 --- Apps/QueryLogsMySqlApp/App.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Apps/QueryLogsMySqlApp/App.cs b/Apps/QueryLogsMySqlApp/App.cs index f3d3099c..a2d1d90f 100644 --- a/Apps/QueryLogsMySqlApp/App.cs +++ b/Apps/QueryLogsMySqlApp/App.cs @@ -89,7 +89,7 @@ namespace QueryLogsMySql { await using (MySqlConnection connection = new MySqlConnection(_connectionString + $" Database={_databaseName};")) { - await connection.OpenAsync(); + connection.Open(); //OpenAsync() has a critical bug that will crash the entire DNS server which Oracle wont fix: https://bugs.mysql.com/bug.php?id=110789 if (_maxLogRecords > 0) { @@ -179,7 +179,7 @@ namespace QueryLogsMySql await using (MySqlConnection connection = new MySqlConnection(_connectionString + $" Database={_databaseName};")) { - await connection.OpenAsync(); + connection.Open(); //OpenAsync() has a critical bug that will crash the entire DNS server which Oracle wont fix: https://bugs.mysql.com/bug.php?id=110789 await using (MySqlCommand command = connection.CreateCommand()) { @@ -316,7 +316,7 @@ namespace QueryLogsMySql { await using (MySqlConnection connection = new MySqlConnection(_connectionString)) { - await connection.OpenAsync(); + connection.Open(); //OpenAsync() has a critical bug that will crash the entire DNS server which Oracle wont fix: https://bugs.mysql.com/bug.php?id=110789 await using (MySqlCommand command = connection.CreateCommand()) { @@ -578,7 +578,7 @@ CREATE TABLE IF NOT EXISTS dns_logs await using (MySqlConnection connection = new MySqlConnection(_connectionString + $" Database={_databaseName};")) { - await connection.OpenAsync(); + connection.Open(); //OpenAsync() has a critical bug that will crash the entire DNS server which Oracle wont fix: https://bugs.mysql.com/bug.php?id=110789 //find total entries long totalEntries;