Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

fix for cases where connection is broken and release() is called, avo… #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

olgkpln
Copy link

@olgkpln olgkpln commented Feb 6, 2019

Fixing a case when release() is called for a broken connection. without this, the broken connection is returned to the idle pool and reused.

@olgkpln olgkpln closed this Feb 6, 2019
@olgkpln olgkpln reopened this Feb 6, 2019
@brianc
Copy link
Owner

brianc commented Feb 11, 2019

Thanks for the pull request @olgkpln! Any way you could write a test for this?

@johanneswuerbach
Copy link
Contributor

I think #115 is a better way to prevent this or is there any other way then double releasing the client to trigger this bug?

@brianc
Copy link
Owner

brianc commented Feb 11, 2019

ah yeah if #115 fixes this I can just merge that one.

@olgkpln
Copy link
Author

olgkpln commented Feb 12, 2019

#115 is a good fix as well

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

Successfully merging this pull request may close these issues.

3 participants