mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
An operator's `0` means "off", but SQLAlchemy gates recycling on `_recycle > -1`, so a literal 0 recycles on every checkout: a fresh connect and auth handshake per pool checkout. Mapping it to -1 is therefore load-bearing, but doing it at the engine left the value defined in `config` and corrected in `base_handler`, so a second consumer could reasonably pass the raw constant and reintroduce the footgun. Fold the mapping into the constant. Also drop the `wait_timeout` figure the comment attributed to MariaDB. Its default is 28800s; 600s is a value some hosts lower it to, not a MariaDB one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>