mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-07-23 23:20:44 +00:00
When user.idle_timeout is present in patch.cfg, apply_patch_config() now updates all active user sessions via usr::update_idle_timeout() and also updates the cached metric_thresholds array for future connections. Previously user.idle_timeout was only read at startup (usr::init()) and could not be changed on a running node without a container restart. Implementation: - comm_server.hpp: added for_each_session() template to iterate live sessions (shared with feat/dynamic-mesh-idle-timeout-from-patch-cfg) - usr.cpp: added update_idle_timeout() which updates metric_thresholds[4] and calls set_threshold(IDLE_CONNECTION_TIMEOUT) on all active user sessions - conf.cpp: reads user.idle_timeout from patch.cfg in apply_patch_config(), calls usr::update_idle_timeout() when value changes Sibling PRs (part of dynamic config series): - fix/dynamic-log-level-from-patch-cfg (already raised) - feat/dynamic-mesh-idle-timeout-from-patch-cfg (already raised)