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

Do not return broken connections to the idle pool #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Do not return broken connections to the idle pool #82

wants to merge 1 commit into from

Conversation

boromisp
Copy link

@boromisp boromisp commented Nov 3, 2017

Assuming that clients are unusable after emitting an error, the library should make sure, not to return broken connections to the idle pool.

Idle clients are dropped already on error, this change just extends that behavior to the active clients.

This is an un-breaking change (unless there are client errors one can recover from?), and could potentially remove the only real use-case I found for the second parameter of release.

The error flag on the client is needed because of the callback API.

@charmander charmander mentioned this pull request Jan 10, 2018
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.

1 participant