Skip to content

Improve Async Pathways in Connectivity APIs #3459

Description

@mdaigle

Is your feature request related to a problem? Please describe.

This is a placeholder issue, more details will be added over time.

SqlConnection.OpenAsync() violates async best practices in numerous locations. This issue will track those locations and how they should be fixed.

  • connection resiliency reconnect uses Task.Run. Introduce a sync api.
    internal Task ValidateAndReconnect(Action beforeDisconnect, int timeout)
    runningReconnect = Task.Run(() => ReconnectAsync(timeout));
  • SqlInternalConnectionTds.cs - fedauth token acquisition
    • _fedAuthToken = new(Task.Run(async () => await authProvider!.AcquireTokenAsync(authParamsBuilder)).GetAwaiter().GetResult());

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the feature request here.

AB#42261

Activity

  1. changed the title [-]Improve Async Pathways in Connectivity APIs[/-] [+][PLACEHOLDER] Improve Async Pathways in Connectivity APIs[/+] on Jun 30, 2025
  2. moved this from To triage to Backlog in SqlClient Boardon Nov 21, 2025
  3. changed the title [-][PLACEHOLDER] Improve Async Pathways in Connectivity APIs[/-] [+][PLACEHOLDER] Unix Async Performance - Thread Starvation in Parallel ExecuteReaderAsync[/+] on Mar 30, 2026
  4. changed the title [-][PLACEHOLDER] Unix Async Performance - Thread Starvation in Parallel ExecuteReaderAsync[/-] [+][PLACEHOLDER] Improve Async Pathways in Connectivity APIs[/+] on Mar 30, 2026
  5. priyankatiwari08 commented on Sep 17, 2026

    @priyankatiwari08
    Contributor

    /triage

  6. github-actions commented on Sep 17, 2026

    @github-actions

    test body

    Generated by SqlClient Issue Auto-Triage for #3459 · copilot · auto · 66.3 AIC · ⌖ 14.5 AIC · ⊞ 11.9K · ◷

  7. changed the title [-][PLACEHOLDER] Improve Async Pathways in Connectivity APIs[/-] [+]Improve Async Pathways in Connectivity APIs[/+] on Sep 18, 2026
  8. self-assigned this
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions