sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Fix: spawn task when opening new connection in acquire.

Open joeydewaal opened this issue 1 year ago • 1 comments

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?

joeydewaal avatar Sep 20 '24 20:09 joeydewaal

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?

joeydewaal avatar Sep 21 '24 18:09 joeydewaal

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.

abonander avatar Oct 29 '24 22:10 abonander