Bradley Grainger

Results 329 comments of Bradley Grainger

Proposed API: ``` void ChangeUser(string userName, string password, string database = null); Task ChangeUserAsync(string userName, string password, string database = null, CancellationToken cancellationToken = default); ``` Specifying a `database` parameter...

See also https://github.com/dotnet/corefx/issues/23597. Moved to https://github.com/dotnet/runtime/issues/23349.

> We are using MySqlConnector 1.3.8 Firstly, please update to 1.3.10 or later; this fixes some bugs with connection resetting that may be contributing to this problem. Secondly, do you...

This message (without "All pooled connections are in use.") and the inner exception means that opening a TCP socket to the MySQL Server timed out. That could indicate a problem...

> the inner exception is an object disposed exception You can (and should) ignore that: https://github.com/mysql-net/MySqlConnector/issues/1035 > The exception above has a Server Error Code = 1042. Can we assume...

> Should this not be wrapped in a MySQLException? Are you sure it's not? > Inner exception type: System.ObjectDisposedException That says "Inner exception". What's the outer exception? FWIW, I'll be...

Thanks for the full exception. Assuming the line number is approximately correct, looks like the exception is being thrown from here: https://github.com/mysql-net/MySqlConnector/blob/1.3.12/src/MySqlConnector/Core/ServerSession.cs#L1036-L1037 Which is calling into this code: https://github.com/mysql-net/MySqlConnector/blob/1.3.12/src/MySqlConnector/Utilities/SocketExtensions.cs#L43-L46 It...

>> "That particular connection is likely unusable and should be disposed. I think your code should probably pause and retry after a short delay when this particular error code is...

> We were also running some perf tests and noticed that the performance of our application went significantly down with 1.3.12 vs 1.3.8. So we are still looking into that....