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

Fixed hanging if new connection is made after disconnect() call #96

Merged
merged 1 commit into from
Jan 12, 2016
Merged

Fixed hanging if new connection is made after disconnect() call #96

merged 1 commit into from
Jan 12, 2016

Conversation

IlyaSkriblovsky
Copy link
Owner

ConnectionPool may hang on disconnecting if new connection is made after disconnect() call. This new connection is added to pool, but it wont disconnect, so pool will never be empty and disconnect() will never return.

This happen often when I run very short unit tests and when not all pool's connections get connected before disconnect().

Fixed by preventing new connections to be added to pool if its continueTrying is set to False.

fiorix added a commit that referenced this pull request Jan 12, 2016
Fixed hanging if new connection is made after disconnect() call
@fiorix fiorix merged commit 5469ca1 into IlyaSkriblovsky:master Jan 12, 2016
@fiorix
Copy link
Collaborator

fiorix commented Jan 12, 2016

👍

@IlyaSkriblovsky
Copy link
Owner Author

Is there any plans for 1.4 version? It would be cool to get this fix into PyPI... :)

@fiorix
Copy link
Collaborator

fiorix commented Jan 12, 2016

Yes, doing it now. Going forward I could use some of your help if you don't mind. ;)

@IlyaSkriblovsky
Copy link
Owner Author

Sure :)
Please take a look on #94 also. Could you please clarify txredisapi behavior there?

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