launchbadge/sqlx

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

Open

#3,513 opened on Sep 20, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (1,307 forks)batch import
E-mediumenhancementgood first issuepool

Repository metrics

Stars
 (13,916 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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:

Contributor guide