launchbadge/sqlx

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

Open

#3513 aperta il 20 set 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Rust (1307 fork)batch import
E-mediumenhancementgood first issuepool

Metriche repository

Star
 (13.916 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

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:

Guida contributor