mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
The engine sets `pool_pre_ping` but no `pool_recycle`, so a connection the database closed for being idle is still handed out, and the ping on that half-closed socket blocks the worker until TCP gives up: tens of seconds to minutes of an unresponsive API for every request that draws it, while a fresh connection to the same server answers instantly. Default to 300s, under the lowest `wait_timeout` MariaDB is commonly configured with, and make it settable. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>