Skip to content

Pool should spawn a task when connecting in acquire() #3513

@abonander

Description

@abonander

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-mediumenhancementNew feature or requestgood first issueGood for newcomerspoolRelated to SQLx's included connection pool

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions