launchbadge/sqlx
Pool should spawn a task when connecting in `acquire()`
Aperta
#3513 aperta il 20 set 2024
E-mediumenhancementgood first issuepool
Metriche repository
- Star
- (13.916 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
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)