launchbadge/sqlx

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

Open

#3.513 geöffnet am 20. Sept. 2024

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (1.307 Forks)batch import
E-mediumenhancementgood first issuepool

Repository-Metriken

Stars
 (13.916 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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