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

Can't get close_info from synchronous connection #75

Open
vitaly-krugl opened this issue May 21, 2015 · 0 comments
Open

Can't get close_info from synchronous connection #75

vitaly-krugl opened this issue May 21, 2015 · 0 comments

Comments

@vitaly-krugl
Copy link

If connection fails during construction of synchronous RabbitConnection or Connection, there is no way to get the close_info.

def onConnectionClosed(): # no arg passed to callback, so no way to get close_info
  pass

# Here, if connection set-up/negotiation/etc. fails in the constructor, `conn` is not set up, 
# so we can't get close_info directly from the instance
conn = RabbitConnection(user="unknownuser", close_cb=onConnectionClosed)
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

No branches or pull requests

1 participant