Skip to content

New pool #190

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

Merged
merged 5 commits into from
Jun 23, 2016
Merged

New pool #190

merged 5 commits into from
Jun 23, 2016

Conversation

zhenlineo
Copy link
Contributor

There was no logic for closing a connection if the connection cannot be returned to the new idle session pool (full/closed).
Failed to push to previous PR #188, so get this new one.

pontusmelke and others added 3 commits June 10, 2016 18:56
When the pool is full, close the connection directly
When driver is closed, session.close will close the connection directly
@zhenlineo zhenlineo force-pushed the 1.0-new-pool-zhen branch from 8bc9779 to fcadc2f Compare June 16, 2016 17:21
Zhen added 2 commits June 17, 2016 20:05
Fixed the bug where the connection is not return to pool or closed when it is invalid
Fixed the bug where the connection is disposed but being put back to pool
Fixed a race condition where the connection is put back to pool after the pool is cleared
Added more tests to make sure that all state changes of a pooled connection related to pooling and disposing are thread-safe
@zhenlineo zhenlineo merged commit 703afe8 into neo4j:1.0 Jun 23, 2016
@zhenlineo zhenlineo deleted the 1.0-new-pool-zhen branch June 23, 2016 12:31
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