Closed
Description
Perhaps, I don't understand the intent of acquireTimeout - or it has a bug.
I can set my pool to a small number (e.g. 2), and invoke (bad) code that does not properly release a connection. Once, I exhaust the connectionLimit, connections start queuing - but will wait indefinitely regardless of how low I specify the acquireTimeout (e.g. 1000ms).
I can force an error with lowering the queueLimit, or by setting waitForConnections: false, but what I really wanted was to only generate an error when it takes a long time to get a connection from the pool.
(I did see a feature request referring to a maxWait or queueWaitTimeout - but a comment said it was the same as acquireTimeout.)
Thanks for any assistance.