launchbadge/sqlx

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

Aberta

#3.513 aberto em 20 de set. de 2024

 (0 comentário) (0 reação) (0 responsável)Rust (1.307 forks)batch import
E-mediumenhancementgood first issuepool

Métricas do repositório

Stars
 (13.916 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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:

Guia do colaborador