Skip to content

Opening connection hangs indefinitely when connecting to wrong pipe name #804

Closed

Description

@abrasaxdeity

Run following code:

MySqlConnectionStringBuilder builder = new MySqlConnectionStringBuilder
{
	PipeName = "nonexistingpipe",
	ConnectionProtocol = MySqlConnectionProtocol.NamedPipe,
	Server = ".",
	ConnectionTimeout = 1
};

MySqlConnection conn = new MySqlConnection(builder.ConnectionString);

conn.Open();

Expected behavior: throws exception after 1 second
Actual behavior: hangs indefinitely on conn.Open()

Activity

  1. added 3 commits that reference this issue on Apr 26, 2020
    190c0d6
    b3c96d8
    dbd9d1e
  2. bgrainger commented on Apr 26, 2020

    @bgrainger
    Member

    Fixed in 0.64.1.

  3. added theissue type on Jan 18, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions