launchbadge/sqlx

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

オープン

#3,513 opened on 2024/09/20

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (1,307 件のフォーク)batch import
E-mediumenhancementgood first issuepool

Repository metrics

Stars
 (13,916 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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:

コントリビューターガイド