Skip to content

Updating to v10.0.1 causes OpenConnectionAsync to hang forever #6467

Description

@doomchild

Code that works just fine in v9.0.4 causes the application to hang indefinitely in v10.0.1.

Reproduction:

string connString = "Host=localhost;Port=5432;Username=user;Password=pwd;Database=database";

NpgsqlConnectionStringBuilder connectionStringBuilder = new(connString);
NpgsqlDataSource? dataSource = NpgsqlDataSource.Create(connectionStringBuilder);

await using (NpgsqlConnection pConnection = await dataSource!.OpenConnectionAsync()) ← permanent hang

When I pause in the debugger, I can see one thread with a pretty huge call stack that appears to be somewhere down in the security end of things. Downgrading to 9.0.4 fixes the problem.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions