Skip to content

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

Closed
@abrasaxdeity

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions