Bradley Grainger

Results 329 comments of Bradley Grainger

I'm not sure what's going wrong, and I don't have access to an AWS Lambda/RDS instance to try to reproduce the problem. (And even if I did, is there any...

Which version of MySqlConnector are you using? There was a very similar bug to this that was fixed in 0.38.0: #469.

Just to confirm: you’re saying that you do reproduce the problem with the latest code?

> I do not know if it's the exact same bug as the one you linked me to. It's probably not; I just wanted to rule out that you weren't...

Your code looks correct; I don't see an obvious reason why the connection pool would become exhausted even though sessions are being returned. Logs might help identify what's going on....

I can't explain how you're ending up in a state where `m_sessions.Count == 20` but `m_sessionSemaphore.CurrentCount == 0`; AFAICT `ConnectionPool.Return` should release the semaphore whenever a session is added to...

> Another exception that is sometimes occuring is this: > > `Unhandled Exception: System.IO.EndOfStreamException: Expected to read 4 header bytes but only received 3.` Please provide more details on this...

This could possibly be related to https://github.com/dotnet/corefx/issues/35393.

There may actually be substantially more work required here to fix race conditions as demonstrated in https://github.com/npgsql/npgsql/pull/1610.

What is the API signature and behaviour of this proposed method? (I don't see an equivalent method on `MySqlConnection`, `NpgsqlConnection` or `SqlConnection`; is there an existing example you're referencing?)