launchbadge/sqlx

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

Open

#3,513 创建于 2024年9月20日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Rust (13,916 star) (1,307 fork)batch import
E-mediumenhancementgood first issuepool

描述

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:

贡献者指南