Repository: sysown/proxysql (language: cpp)

Issue:
Impossible to set variable default_query_timeout
ProxySQL version 2.2.0-72-ge14accd, codename Truls

```
set  mysql-default_query_timeout=3600000;
load mysql variables to run;
```

proxysql.log
`ProxySQL_Admin.cpp:6174:flush_mysql_variables___database_to_runtime(): [WARNING] Impossible to set variable default_query_timeout with value "3600000". Resetting to current "86400000".`

see https://proxysql.com/documentation/global-variables/mysql-variables/#mysql-default_query_timeout
mysql-default_query_timeout Minimum is 1000, why can not set 3600000



Discussion / hints:

Fix patch:
diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp
index 7d27bdff19..f791ba19c1 100644
--- a/lib/MySQL_Thread.cpp
+++ b/lib/MySQL_Thread.cpp
@@ -2051,7 +2051,7 @@ char ** MySQL_Threads_Handler::get_variables_list() {
 		// query processor and query digest
 		VariablesPointers_int["auto_increment_delay_multiplex"]  = make_tuple(&variables.auto_increment_delay_multiplex,   0,     1000000, false);
 		VariablesPointers_int["default_query_delay"]             = make_tuple(&variables.default_query_delay,              0,   3600*1000, false);
-		VariablesPointers_int["default_query_timeout"]           = make_tuple(&variables.default_query_timeout,            0,   1000*1000, false);
+		VariablesPointers_int["default_query_timeout"]           = make_tuple(&variables.default_query_timeout,         1000,20*24*3600*1000, false);
 		VariablesPointers_int["query_digests_grouping_limit"]    = make_tuple(&variables.query_digests_grouping_limit,     1,        2089, false);
 		VariablesPointers_int["query_digests_max_digest_length"] = make_tuple(&variables.query_digests_max_digest_length, 16, 1*1024*1024, false);
 		VariablesPointers_int["query_digests_max_query_length"]  = make_tuple(&variables.query_digests_max_query_length,  16, 1*1024*1024, false);


Test patch: