Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abrasaxdeity opened this issue Apr 21, 2020 · 1 comment
Labels

Comments

@abrasaxdeity
Copy link

@abrasaxdeity abrasaxdeity commented Apr 21, 2020

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

@bgrainger
Copy link
Member

@bgrainger bgrainger commented Apr 26, 2020

Fixed in 0.64.1.

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

No branches or pull requests

2 participants