Connection pool exhausted in persistent library
0 reputation · 18 Mar 2023, 06:35 UTC
Connection pool exhausted
When using Haskell's persistent library, the runSqlPool function throws a ConnectionPoolExhausted exception when all pool connections are utilized.
The current implementation favors a fast-fail mechanism without built-in blocking or configurable wait times.
Unresolved Behavior
The community has not finalized whether the default behavior should shift to blocking until a connection frees up or retain the immediate exception.
- What is the documented mechanism for configuring a wait timeout on
runSqlPool? - Does the current version of persistent support non-blocking acquisition attempts?