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

Backport commit from 1.5 to 1.4: Improve disposal of broken connections #401

Merged
merged 1 commit into from
Sep 14, 2017

Conversation

zhenlineo
Copy link
Contributor

Connection pool can discard broken connections during acquisition
(when connection liveness check timeout is configured) and when
connections are returned to the pool. In both cases connections
should be disposed and removed from the set of active connections.
This is especially important with least connected load balancing
strategy which examines amount of active connections for each address.

This commit makes sure broken connections are disposed through the
connections queue to make sure active set is always updated.

Require a null forward merge to 1.5

Connection pool can discard broken connections during acquisition
(when connection liveness check timeout is configured) and when
connections are returned to the pool. In both cases connections
should be disposed and removed from the set of active connections.
This is especially important with least connected load balancing
strategy which examines amount of active connections for each address.

This commit makes sure broken connections are disposed through the
connections queue to make sure active set is always updated.
@zhenlineo zhenlineo requested a review from lutovich September 13, 2017 10:21
@lutovich lutovich merged commit e82457a into neo4j:1.4 Sep 14, 2017
@lutovich lutovich deleted the 1.4-conn-leak branch September 14, 2017 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants