From 5dc426cd63c4833bc4f7f276bf8d92aa3c78eae7 Mon Sep 17 00:00:00 2001 From: Pikamander2 Date: Sat, 18 May 2024 05:38:20 -0400 Subject: [PATCH] Fix incorrect number of seconds in a day (86400, not 84600) Fix incorrect number of seconds in a day (86400, not 84600) --- sql/ssl_init_callback.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/ssl_init_callback.cc b/sql/ssl_init_callback.cc index 816106052cd4..47da4c883ab0 100644 --- a/sql/ssl_init_callback.cc +++ b/sql/ssl_init_callback.cc @@ -216,13 +216,13 @@ static Sys_var_bool Sys_var_opt_ssl_session_cache_mode( PERSIST_AS_READONLY GLOBAL_VAR(opt_ssl_session_cache_mode), CMD_LINE(OPT_ARG), DEFAULT(true), PFS_TRAILING_PROPERTIES); -/* 84600 is 1 day in seconds */ +/* 86400 is 1 day in seconds */ static Sys_var_long Sys_var_opt_ssl_session_cache_timeout( "ssl_session_cache_timeout", "The timeout to expire sessions in the TLS session cache", PERSIST_AS_READONLY GLOBAL_VAR(opt_ssl_session_cache_timeout), CMD_LINE(REQUIRED_ARG, OPT_SSL_SESSION_CACHE_TIMEOUT), - VALID_RANGE(0, 84600), DEFAULT(300), BLOCK_SIZE(1), + VALID_RANGE(0, 86400), DEFAULT(300), BLOCK_SIZE(1), PFS_TRAILING_PROPERTIES); /* Related to admin connection port */