Skip to content

fix(pecl): Check if the connection is connected when creating a channel#212

Open
u2032 wants to merge 1 commit into
swarrot:masterfrom
u2032:fix-connection-issue
Open

fix(pecl): Check if the connection is connected when creating a channel#212
u2032 wants to merge 1 commit into
swarrot:masterfrom
u2032:fix-connection-issue

Conversation

@u2032

@u2032 u2032 commented Sep 1, 2021

Copy link
Copy Markdown

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