sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Pool should spawn a task when connecting in `acquire()`

Open abonander opened this issue 1 year ago • 0 comments

This way, if the acquire() call is cancelled or times out, the connection can still go through.

The connection task should have its own separate timeout, possibly surfaced as PoolOptions::connect_timeout().

This will likely fix:

  • #3315
  • #3132
  • #2848 (https://github.com/launchbadge/sqlx/issues/2848#issuecomment-1796790935)

abonander avatar Sep 20 '24 06:09 abonander