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

IsSecureConnection is not retained w/ Pooling #269

Closed
iamcarbon opened this issue Jun 1, 2017 · 1 comment
Closed

IsSecureConnection is not retained w/ Pooling #269

iamcarbon opened this issue Jun 1, 2017 · 1 comment
Labels

Comments

@iamcarbon
Copy link
Contributor

When using the new mysql_clear_password functionality w/ pooling, the second request throws:

MySql.Data.MySqlClient.MySqlException : Authentication method 'mysql_clear_password' requires a secure connection.

Without digging deeper, it looks like we may be loosing the SSL mode when getting a connection back from the pool.

Everything works as expected on the first request and when pooling is explicitly disabled.

Here's the connection string:

Server=server;Port=3306;Database=database;User Id=testing;Password=""iamtoken"";SSL Mode=Required;AllowUserVariables=True
@bgrainger bgrainger added the bug label Jun 1, 2017
bgrainger added a commit that referenced this issue Jun 1, 2017
"Modifying" the ConnectionSettings object passed to this method (by
creating a clone with updated properties) didn't persist the changes
anywhere. Now, all state specific to this session is stored in its
fields, so a session retrieved from the pool has the right state.
bgrainger added a commit that referenced this issue Jun 1, 2017
"Modifying" the ConnectionSettings object passed to this method (by
creating a clone with updated properties) didn't persist the changes
anywhere. Now, all state specific to this session is stored in its
fields, so a session retrieved from the pool has the right state.
@bgrainger
Copy link
Member

Fixed in 0.20.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