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

Fix possible AttribueError during conn._close_socket #1776

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Apr 2, 2019

Found via StackOverflow -- if user misconfigures BrokerConnection (for example attempts to use gssapi w/o module installed), we raise an exception immediately. But the configuration checks happen before _sock is initialized, and the following gc call to __del__ calls _close_socket which crashes on AttributeError. So this is a quick fix for that.


This change is Reviewable

@dpkp dpkp merged commit 827dee2 into master Apr 2, 2019
@dpkp dpkp deleted the fix_close_socket_attribute_error branch April 2, 2019 06:42
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