1 Commits

Author SHA1 Message Date
giles
656738782f Fix database connection pool leak in init_db()
- Check if pool already exists before creating a new one
- Set pool size limits (min=2, max=10) to prevent exhaustion
- Multiple calls to init_db() were creating new pools without
  closing old ones, leading to "too many clients" errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 23:00:13 +00:00