sqlx
sqlx copied to clipboard
Fix: spawn task when opening new connection in acquire.
Does your PR solve an issue?
Fixes #3513,#3315,#3132,#2848
Ive read through the issues and I think this is the solution like proposed in #2848. However I don't think this is done yet. Should the connect_timeout be a part of the public api? Is 30 seconds a good default?
Now the pool tries to get an idle connection while opening a new connection. It has a backoff mechanism (taken from connect) but I'm not sure if this is necessary?
Thank you for your effort, but after some thought I realized that Pool needed significant internal changes to improve its behavior. So this has been superceded by #3582.