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(pecl): Check if the connection is connected when creating a channel #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

u2032
Copy link

@u2032 u2032 commented Sep 1, 2021

If the connection is not connected, the constructor of the AMQPChannel throws an exception stating : Could not create channel. No connection available.

In particular, if the first connect() method call failed, the ampqconnection is stored in the class even if the connection is not opened and all future calls to the getChannel() method didn't try to reconnect, failing with the above exception

If the connection is not connected, the constructor of the AMQPChannel throws an exception stating : `Could not create channel. No connection available.`

In particular, if the first connect() method call failed, the ampqconnection is stored in the class even if the connection is not opened and all future calls to the getChannel() method didn't try to reconnect, failing with the above exception
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.

1 participant