You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Warn if value was clamped due to ProxySQL limits
6632
+
if (original_timeout != client_timeout) {
6633
+
proxy_warning("Client [%s:%d] (user: %s) requested wait_timeout = %llu ms, clamped to %llu ms (ProxySQL limits: 1s to 20 days)\n",
6634
+
client_myds->addr.addr, client_myds->addr.port,
6635
+
client_myds->myconn->userinfo->username,
6636
+
original_timeout,
6637
+
client_timeout);
6638
+
}
6639
+
6640
+
// Warn if client's value exceeds current global timeout (after clamping)
6641
+
if (client_timeout > static_cast<unsignedlonglong>(mysql_thread___wait_timeout)) {
6642
+
proxy_warning("Client [%s:%d] (user: %s) requested wait_timeout = %llu ms, exceeds the global mysql-wait_timeout = %d ms. Global timeout will still be enforced.\n",
6643
+
client_myds->addr.addr, client_myds->addr.port,
6644
+
client_myds->myconn->userinfo->username,
6645
+
client_timeout,
6646
+
mysql_thread___wait_timeout);
6647
+
}
6648
+
6649
+
if (static_cast<unsignedlonglong>(this->wait_timeout) != client_timeout) {
6650
+
this->wait_timeout = client_timeout;
6651
+
proxy_debug(PROXY_DEBUG_MYSQL_COM, 8, "Changing connection wait_timeout to %llu ms\n", client_timeout);
6652
+
}
6597
6653
} elseif (var == "tx_isolation") {
6598
6654
std::string value1 = *values;
6599
6655
proxy_debug(PROXY_DEBUG_MYSQL_COM, 5, "Processing SET tx_isolation value %s\n", value1.c_str());
if (sess_time/1000 > (unsignedlonglong)mysql_thread___wait_timeout) {
3888
+
if (sess_time/1000 > effective_wait_timeout) {
3858
3889
sess->killed=true;
3859
3890
if (sess->client_myds) {
3860
3891
proxy_warning("Killing client connection %s:%d because inactive for %llums\n",sess->client_myds->addr.addr,sess->client_myds->addr.port, sess_time/1000);
3861
3892
}
3893
+
3894
+
// Increment counter for timeout-terminated connections
0 commit comments