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

Call markBadConn in Ping method #875

Merged

Conversation

iliacimpoes
Copy link
Contributor

@iliacimpoes iliacimpoes commented Oct 19, 2018

Description

Currently connection is not marked as "Bad Connection" in Ping method, so a bad connection is not removed from connection pool.

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

Copy link
Member

@julienschmidt julienschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes look good. Thank you!

Please add yourself to the AUTHORS file, so we can merge the PR.

@julienschmidt julienschmidt added this to the v1.4.1 milestone Oct 19, 2018
@julienschmidt julienschmidt merged commit 0f257fc into go-sql-driver:master Oct 19, 2018
@iliacimpoes
Copy link
Contributor Author

@methane @julienschmidt, thanks for the quick review

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

Successfully merging this pull request may close these issues.

None yet

3 participants