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:

貢獻者指南