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

Handle cases where server resets connection #221

Closed
caleblloyd opened this issue Apr 2, 2017 · 0 comments
Closed

Handle cases where server resets connection #221

caleblloyd opened this issue Apr 2, 2017 · 0 comments

Comments

@caleblloyd
Copy link
Contributor

@caleblloyd caleblloyd commented Apr 2, 2017

Right now there are a few loose ends when the MySQL server resets a connection. This is mainly encountered in our tests by submitting packets over max_packet_size, described in #40

  • Calls that use the connection in MySqlConnection.Dispose will fail
  • Reset MySQL sessions should not be re-used by the connection pool
  • If MySqlConnection.Dispose throws an exception, connections could be "checked out" of their connection pool forever (need try/finally logic with last step being to return a connection to the pool)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant